Advertisement
Guest User

Untitled

a guest
Mar 19th, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. local loggedstuf = {}
  2. function add_this(text)
  3. table.insert(loggedstuf,text .. "\n")
  4. end
  5.  
  6. function ischildrennil(a)
  7. for i,v in pairs(a:getChildren()) do
  8. if v~= nil then
  9. return true
  10. end
  11. end
  12. return false
  13. end
  14.  
  15. function log_extra(a)
  16. for i,v in pairs(a:getChildren()) do
  17. if v~= nil then
  18. if v:IsA("ModuleScript") then
  19. local text = "Name: "..v.Name.." | ".."Location: ".."game."..v:GetFullName()
  20. return add_this(text)
  21. end
  22. end
  23. end
  24. end
  25.  
  26. function something(bitch)
  27. for i,v in pairs(bitch:children())do
  28. if string.match(v.ClassName, "ModuleScript") then
  29. local text = "Name: "..v.Name.." | ".."Location: ".."game."..v:GetFullName()
  30. add_this(text)
  31. if ischildrennil(v) then
  32. log_extra(v)
  33. end
  34. end
  35. something(v)
  36. end
  37. end
  38. print("Calling Func [0]")
  39. pcall(something,game.Workspace)
  40. pcall(something,game.ReplicatedStorage)
  41. pcall(something,game.Players)
  42. print("Func called [1]")
  43. print(string.rep("\n", 3))
  44. print(table.concat(loggedstuf))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement