I'm making custom admin for my game but it only works in studio.
Here is my script.
local Admins = {"ScriptToon"}
for i,v in pairs(Admins) do
game.Players[Admins[i]].Chatted:Connect(function(msg)
if msg == "Script-KickAll" then
local players = game.Players:GetPlayers()
for p = 1,#players do
players[p]:Kick("You were kicked by an admin!")
end
end
end)
end

1 comment
Sorry for the inconvenience, this question did fall within our guidelines and was moderated by a member of the community. After review, the question has been restored and reputation has been reallocated to your account to make up for the loss.