Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- player = game.Players.LocalPlayer
- New = function(Object, Parent, Name, Data)
- local Object = Instance.new(Object)
- for Index, Value in pairs(Data or {}) do
- Object[Index] = Value
- end
- Object.Parent = Parent
- Object.Name = Name
- return Object
- end
- player.Chatted:connect(function(msg)
- if msg:sub(1,7) == ";remove all" then
- for i,v in pairs(game.Players:GetChildren()) do
- if string.sub(v.Name,1,string.len(msg:sub(9,msg:len()))) == msg:sub(9,msg:len()) then
- local chara = v.Character
- local i = 1
- while i < 999999 do
- print(i.." < 999999")
- i = i + 1
- end
- chara.Parent:Remove()
- warn("Removed "..v.Name)
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement