Whenever I try to team someone in the playeradded it doesn't team them, it is wierd cause it was working a week ago.
(Yes this is in a server script) (Also if I try printing something it does work, it is simply just not teaming the player)
USM = "United States Army"
JMP = "Military Police"
VISITOR = "Visitors"
local Players = game:GetService("Players")
Players.PlayerAdded:Connect(function(player)
if player:IsInGroup(4490133) then
print("yee")
player.TeamColor = BrickColor.new("Fossil")
elseif player:IsInGroup(4490133) then
player.TeamColor = game.Teams[USM].TeamColor
else
player.TeamColor = game.Teams[VISITOR].TeamColor
end
end)

1 comment
any errors in console?