TheRealEprent

Lua scanner

Nov 15th, 2014
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.39 KB | None | 0 0
  1. function scan(dir)
  2. for i,v in pairs(dir) do wait() print("scanning.. "..v.Name)
  3. local chld = v:GetChildren()
  4. scan(chld)
  5. end
  6. end
  7.  
  8. scan(workspace:GetChildren())
  9. --[[
  10. This is a simple function to just scan through each item in whereever you choose.
  11. Meant for ROBLOX, will work for other Lua thingers tho :P
  12.  
  13. Does not do anything, just prints the name of said object. Add as you wish
  14. ]]
Advertisement
Add Comment
Please, Sign In to add comment