Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local loggedstuf = {}
- function add_this(text)
- table.insert(loggedstuf,text .. "\n")
- end
- function ischildrennil(a)
- for i,v in pairs(a:getChildren()) do
- if v~= nil then
- return true
- end
- end
- return false
- end
- function log_extra(a)
- for i,v in pairs(a:getChildren()) do
- if v~= nil then
- if v:IsA("ModuleScript") then
- local text = "Name: "..v.Name.." | ".."Location: ".."game."..v:GetFullName()
- return add_this(text)
- end
- end
- end
- end
- function something(bitch)
- for i,v in pairs(bitch:children())do
- if string.match(v.ClassName, "ModuleScript") then
- local text = "Name: "..v.Name.." | ".."Location: ".."game."..v:GetFullName()
- add_this(text)
- if ischildrennil(v) then
- log_extra(v)
- end
- end
- something(v)
- end
- end
- print("Calling Func [0]")
- pcall(something,game.Workspace)
- pcall(something,game.ReplicatedStorage)
- pcall(something,game.Players)
- print("Func called [1]")
- print(string.rep("\n", 3))
- print(table.concat(loggedstuf))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement