RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"Create admin commands and make sure "Albins1213" is whitelisted"
-- server script local adminList = {"Albins1213"} local function isAdmin(playerName) for _, admin in ipairs(adminList) do if playerName == admin then return true end end return false end local function onChatted(player, message) if isAdmin(player.Name) then local command = string.lower(message) if command == "kick all" then for _, plr in ipairs(game.Players:GetPlayers()) do if plr ~= player then plr:Kick("Kicked by admin") end end end end end game.Players.PlayerAdded:Connect(function(player) player.Chatted:Connect(function(message) onChatted(player, message) end) end)