mewishmeww

scriptkill

Aug 4th, 2023 (edited)
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.38 KB | None | 0 0
  1. local desc = game.Workspace:GetDescendants()
  2. for i=1, #desc do
  3.     if desc[i].ClassName == "Script" or desc[i].ClassName == "LocalScript" or desc[i].ClassName == "ModuleScript" then
  4.         desc[i]:Destroy()
  5.     end
  6. end
  7.  
  8. game.Workspace.ChildAdded:Connect(function(c)
  9.     if c.ClassName == "Script" or c.ClassName == "LocalScript" or c.ClassName == "ModuleScript" then
  10.         c:Destroy()
  11.     end
  12. end)
Advertisement
Add Comment
Please, Sign In to add comment