Hello everyone I'm trying to figure out why my script isn't working. I don't get an error message, but it doesn't matter. I put my script in the ServerScriptService. Could you tell me why?
My script:
game.Players.PlayerAdded:Connect(function(player)
if player.TeamColor == game.Teams.Criminal.TeamColor then
print("Criminal !")
end
end)
Thanks in advance !

1 comment
Your code should work. Check that AutoAssignable is checked on the Criminal team object in the explorer.