How do I get the Name of the Team in which is the player in?

The question is in the title. Thanks for help!

If you already have a player instance set up, you can simply do

player.Team.Name

Where player is the variable that contains your player instance

6 Likes

Players actually have a team value!

local player = game.Players.LocalPlayer

print("The player is on team: "..player.Team.Name)

This would only work in a local script. The expected output would look like this:

The player is on team: Red Team

Hope this helped!