I’m trying to make my own admin commands but they aren’t working! I tried kick the admin along with the players but that doesn’t see to be the issue. I’m not sure how to fix it because the script looks like it should work.
local admins = {"ScriptToon","itscesco","AronIZOdd","koollayg"}
for i,v in pairs(admins) do
game.Players.PlayerAdded:Connect(function(p)
if v == p.Name then
print("Admin!")
p.Chatted:Connect(function(msg)
for i,plrs in pairs(game.Players:GetPlayers()) do
if msg == "Script-KickAll" then
plrs:Kick("You were kicked by an Admin!")
end
end
end)
end
end)
end