My goal: if youre admin and you type ":teams"then it will make a blue and a red team on the leaderboard Problem:the above does not happen i get no errors
admins={"Threatboy101","vinothpizza555"}
function chat(msg, player)
for index, value in pairs(admins) do
if player.Name:lower() == value:lower() then
if string.lower(msg)==":teams"then
teams = game:GetService("Teams")
blue = Instance.new("Team", teams)
blue.Name = "BLUE"
blue.TeamColor = BrickColor.new("Bright blue")
red = Instance.new("Team", teams)
red.Name="RED"
red.TeamColor = BrickColor.new("Bright red")
end
end
end
game.Players.PlayerAdded:connect(function(player)
player.Chatted:connect(chat)
end)

1 comment
thanks and i figured how to do the neutral thing was a simple puzzle