Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local desc = game.Workspace:GetDescendants()
- for i=1, #desc do
- if desc[i].ClassName == "Script" or desc[i].ClassName == "LocalScript" or desc[i].ClassName == "ModuleScript" then
- desc[i]:Destroy()
- end
- end
- game.Workspace.ChildAdded:Connect(function(c)
- if c.ClassName == "Script" or c.ClassName == "LocalScript" or c.ClassName == "ModuleScript" then
- c:Destroy()
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment