I’m writing a script in which I need to know the player’s team with an if statement, how can I do this?
you just need to check
if plr.Team == game.Teams.Team1 then
print("You are in team1")
end
2 Likes
You should compare if player.Team.Name == "" --change to team name instead, as comparing 2 string values is more efficient than comparing 2 instances (in the previous 2 replies you’re comparing the team instances).