if admin[player.Name] then if msg == "shutdown server" then shutdown() end end
--Yes, I already made the table "admin" and I already created the function "shutdown()".
local admins = {player=true, azarth = true, blackknightxx = true} game.Players.PlayerAdded:connect(function(player) player.Chatted:connect(function(msg) if admins[player.Name:lower()] and msg:lower() == "shutdown server" then shutdown() end end) end)