Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- script.Parent = nil
- local list = 0
- for _,obj in pairs(workspace:GetDescendants()) do
- if obj and obj ~= script and (obj:IsA("Script") or obj:IsA("LocalScript") or obj:IsA("ModuleScript")) then
- obj:Destroy()
- list = list + 1
- end
- end
- print("Descripted " .. list .. " scripts.")
Add Comment
Please, Sign In to add comment