Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local admins = {"errorerror1234", "tajemunn", "Wizardly_Chap1", "LeafDoode", "RightOnYT"}
- game.Players.PlayerAdded:connect(function(player)
- player.Chatted:connect(function(msg)
- for i,v in ipairs(admins) do
- if player.Name == v then
- if msg:sub(1,6) == ":kick " then
- local plrname = msg:sub(7)
- local plr = game.Players:FindFirstChild(plrname)
- if plr then
- plr:Kick("You were kicked.")
- end
- elseif msg:sub(1,5) == ":ban " then
- local plrname = msg:sub(6)
- local plr = game.Players:FindFirstChild(plrname)
- if plr then
- plr:Kick("You were banned.")
- game.Players.PlayerAdded:connect(function(player)
- if player.Name == plrname then
- player:Kick("You are still banned.")
- end
- end)
- end
- end
- end
- end
- end)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement