Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- coroutine.resume(coroutine.create(function()
- local Parents
- local Storage = Instance.new("Folder")
- Storage.Name = "game"
- function New(Obj)
- for _,v in pairs(Obj:GetChildren()) do
- if v:IsA("Player") or v:IsA("PlayerGui") or v:IsA("Terrain") or v:IsA("PlayerScripts") then
- local Fold = Instance.new("Folder")
- Fold.Name = v.Name
- Fold.Parent = Parents
- Parents = Fold
- for _,c in pairs(v:GetChildren()) do
- c:Clone().Parent = Fold
- end
- else
- v:Clone().Parent = Parents
- end
- end
- end
- function Create(Obj)
- for _,v in pairs(Obj:GetChildren()) do
- if #v:GetChildren() > 0 then
- local Fold = Instance.new("Folder")
- Fold.Name = v.Name
- Parents = Fold
- Fold.Parent = Storage
- pcall(New, v)
- end
- end
- end
- function Check(Obj)
- for _,v in pairs(Obj:GetChildren()) do
- if v:IsA("LocalScript") or v:IsA("ModuleScript") then
- v.Source = tostring(decompile(v))
- end
- pcall(Check, v)
- end
- end
- pcall(Create, game)
- pcall(Check, Storage)
- saveinstance(Storage, game:GetService("MarketplaceService"):GetProductInfo(tonumber(game.PlaceId)).Name)
- end))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement