Advertisement
gabiplayz

asdgd

Jan 30th, 2018
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. local admins = {"errorerror1234", "tajemunn", "Wizardly_Chap1", "LeafDoode", "RightOnYT"}
  2.  
  3. game.Players.PlayerAdded:connect(function(player)
  4. player.Chatted:connect(function(msg)
  5. for i,v in ipairs(admins) do
  6. if player.Name == v then
  7. if msg:sub(1,6) == ":kick " then
  8. local plrname = msg:sub(7)
  9. local plr = game.Players:FindFirstChild(plrname)
  10. if plr then
  11. plr:Kick("You were kicked.")
  12. end
  13. elseif msg:sub(1,5) == ":ban " then
  14. local plrname = msg:sub(6)
  15. local plr = game.Players:FindFirstChild(plrname)
  16. if plr then
  17. plr:Kick("You were banned.")
  18. game.Players.PlayerAdded:connect(function(player)
  19. if player.Name == plrname then
  20. player:Kick("You are still banned.")
  21. end
  22. end)
  23. end
  24. end
  25. end
  26. end
  27. end)
  28. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement