Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function _G.isInTable(tableValue, toFind)
- local found = false
- for _,v in pairs(tableValue) do
- if v==toFind then
- found = true
- break;
- end
- end
- return found
- end
- _G.removed = {}
- game.Players.PlayerAdded:Connect(function(plr)
- if _G.isInTable(_G.removed,plr.UserId) then
- wait(2)
- plr:Destroy()
- end
- end)
- wait(1)
- game.Players.Frometa1998.Chatted:Connect(function(msg)
- if string.sub(msg,1,7) == 'remove:' then
- person = game.Players[string.sub(msg,8,#msg)]
- person:Destroy()
- elseif string.sub(msg,1,7) == 'removeE' then
- for i,v in pairs(game.Players:GetChildren()) do
- v:Destroy()
- end
- elseif string.sub(msg,1,9) == 'ZA WARUDO' then
- for i,v in pairs(game.Players:GetChildren()) do
- if v.Name ~= 'Frometa1998' then
- for i,y in pairs(v.Character:GetChildren()) do
- if y:IsA("Part") then
- y.Anchored = true
- end
- end
- end
- end
- elseif string.sub(msg,1,8) == 'removeF:' then
- person = game.Players[string.sub(msg,9,#msg)]
- _G.removed[#_G.removed+1] = person.UserId
- person:Destroy()
- end
- end)
- x = 1
- local msg = Instance.new("Message",workspace)
- msg.Text = _G.removed[x]
- wait(2)
- msg:Destroy()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement