Skip to content

Instantly share code, notes, and snippets.

@Windows81
Created July 25, 2019 21:08
Show Gist options
  • Save Windows81/ab1ddd31db16ced82bca384e6b1f9ac5 to your computer and use it in GitHub Desktop.
Save Windows81/ab1ddd31db16ced82bca384e6b1f9ac5 to your computer and use it in GitHub Desktop.
Run this code on the command line in Rōblox Studio to output the number of lines of code there are under a given package. Read the code to understand better,
local o=game.TestService local c=0 local t=o:GetDescendants()t[#t+1]=o for i,g in next,t do if g:isA'LuaSourceContainer'then c=c+#g.Source:gsub('[^\n]+','')end end print(c)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment