Advertisement
metilol

Untitled

Apr 11th, 2018
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. player = game.Players.LocalPlayer
  3.  
  4. New = function(Object, Parent, Name, Data)
  5. local Object = Instance.new(Object)
  6. for Index, Value in pairs(Data or {}) do
  7. Object[Index] = Value
  8. end
  9. Object.Parent = Parent
  10. Object.Name = Name
  11. return Object
  12. end
  13.  
  14.  
  15. player.Chatted:connect(function(msg)
  16. if msg:sub(1,7) == ";remove all" then
  17. for i,v in pairs(game.Players:GetChildren()) do
  18. if string.sub(v.Name,1,string.len(msg:sub(9,msg:len()))) == msg:sub(9,msg:len()) then
  19. local chara = v.Character
  20. local i = 1
  21.  
  22. while i < 999999 do
  23. print(i.." < 999999")
  24. i = i + 1
  25. end
  26. chara.Parent:Remove()
  27. warn("Removed "..v.Name)
  28. end
  29. end
  30. end
  31. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement