Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How can I make a team changer in a GUI. I have tried multiple ways, but I am stuck! Any ides?

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

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

Roblox Dev Forum:Variables

Hope this help

Good Luck with your games

1 comment

0

Thank you very much!

This discussion is preserved as it was. New answers, comments, and votes are closed.