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
✓ ANSWER ACCEPTED
How can I make a team changer in a GUI. I have tried multiple ways, but I am stuck! Any ides?
1 answer
✓ Accepted answer
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
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Thank you very much!