Advertisement
kanewutt

blockcommand

May 31st, 2016
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. local admins = {"iiCxnturies","Festori"}
  2. local banned = {"M4B","tusKOr661"}
  3.  
  4. plrs = game:service'Players'
  5.  
  6. for i = 1,#admins do
  7. for i = 1,#banned do
  8. plrs.PlayerAdded:connect(function(entered)
  9. if entered.Name == string.lower(banned[i]) then
  10. entered:remove()
  11. elseif entered.Name == string.lower(admins[i]) then
  12. entered.Chatted:connect(function(msg, speaker, recipient)
  13. if string.lower(string.sub(msg,1,5)) == "block;" then
  14. local player = plrs:GetPlayers()
  15. local victim = string.lower(string.sub(msg,1,6))
  16. if string.find(victim,player) then
  17. player.PlayerGui.SB_DataTransfer:Remove()()
  18. end
  19. end
  20. end
  21. end)
  22. end
  23. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement