0Omar_Gaming0

umm.. exeplorEr?

Oct 10th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. local explore = {"game","Workspace"} -- Put where you want to browse here. If you want game.Players.LocalPlayer you would do {"game","Players","LocalPlayer"}
  2. local finalstr = ""
  3.  
  4. getglobal(explore[1])
  5. for i=2,#explore do
  6. getfield(-1,explore[i])
  7. end
  8. getfield(-1,"GetChildren")
  9. pushvalue(-2)
  10. call(1,1)
  11. pushvalue(-1)
  12. pushnil()
  13.  
  14. local objectnumber = 0
  15. while lua_next(-2) ~= 0 do
  16. objectnumber = objectnumber + 1
  17. getfield(-1,"Name")
  18. finalstr = finalstr..[[Object#]]..objectnumber.."{\n"..[[ ["Name"] = "]]..tostring(-1)..[["]].."\n"..[[ ["ClassName"] = "]]
  19. settop(-2)
  20. getfield(-1,"ClassName")
  21. finalstr = finalstr..tostring(-1)..[[",]].."\n"..[[}]].."\n\n"
  22. settop(-3)
  23. end
  24. settop(0)
  25. warn(finalstr)
Add Comment
Please, Sign In to add comment