Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 5 years ago

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

Log in to vote
0
Answered by
Leamir 3138 Moderation Voter Community Moderator
5 years ago
Edited 5 years ago

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

0
Thank you very much! Crystalgamesstudio20 4 — 5y
Ad

Answer this question