The code I have tried never worked

team = "white"
Gui = StarterGui 

game.Players.PlayerAdded:Connect(function(player)
	if player.Team.TeamColor == team then
		local clone = gui:Clone()
		clone.Parent = player.PlayerGui
	end
end)

Yeah, I am extremely new to scripting I don't know much. I am like 3 days old and only starting to get into this stuff. My GUI Is in starterGui and my Gui is called CharacterSelection. The Gui I have ready I just need it to only be for one team. The team colour is White by the way.

I do not know if you guy needs a whole new script but please help me out.

2 comments

0

Here is how I would do it

game.Players.LocalPlayer.PlayerGui:FindFirstChild(tostring(game.Players.LocalPlayer.Team.Name)).Enabled = true

basically for this to work you have to make sure you have two different separate screenGui's and make sure the names of your teams are the same on the corresponding screen gui

0

That works.. almost, instead of setting the team to "white" set it to the exact color, such as "Really White," just depends on your team color, remember though, it needs to be exact.