I am stuck with making a team changer for my prion game! I have tried player.Team == "Team Name". And have also tried BrickColor.New == "Team Color". Any ideas. And I want it in a GUI by the way
Hello, Crystalgamesstudio20!
You set teams by its brick color..
Also, you only use ==
if it's an statement
This will work
player.TeamColor = BrickColor.new("Team Color") -- == is only used on statements
this will also work
player.Team = game:GetService("Teams")["Team Name"]
This will not
player.Team = BrickColor.new("Team Color")
this will also fail
player.TeamColor = "Team Color"
Useful links:
API:Player/Team API:Player/TeamColor
Roblox Dev Forum:Conditional Statement
Hope this help
Good Luck with your games