Make a textlabel show the player's team?

people have given me answers and every time i try it the way they want me to, it does nothing.

i’ve tried the way volieb wanted me to,

and it didn’t work.

Can I see what you’re trying? You must not be replacing every line.

	game.Players.PlayerAdded:Connect(function(plr)
		plr.CharacterAdded:Connect(function(chr)
			team.Text = plr.Team.Name
			if plr.Team == "Visitor" then
				team.TextColor3 = VisitorColour
			elseif plr.Team == "Student" then
				team.TextColor3 = StudentColour
			elseif plr.Team == "Staff" then
				team.TextColor3 = StaffColour
			elseif plr.Team == "Council" then
				team.TextColor3 = CouncilColour
			end
		end)
	end)

my original script, just changing plr.Team to plr.Team.Name

You still didn’t replace all of them with plr.Team.Name

Try what i posted and tell me what happens.

1 Like

this?

	game.Players.PlayerAdded:Connect(function(plr)
		plr.CharacterAdded:Connect(function(chr)
			team.Text = plr.Team.Name
			if plr.Team.Name == "Visitor" then
				team.TextColor3 = VisitorColour
			elseif plr.Team.Name == "Student" then
				team.TextColor3 = StudentColour
			elseif plr.Team.Name == "Staff" then
				team.TextColor3 = StaffColour
			elseif plr.Team.Name == "Council" then
				team.TextColor3 = CouncilColour
			end
		end)
	end)

i replaced them all and it still didn’t work.

my script is this

	game.Players.PlayerAdded:Connect(function(plr)
		plr.CharacterAdded:Connect(function(chr)
			team.Text = plr.Team.Name
			if plr.Team.Name == "Visitor" then
				team.TextColor3 = VisitorColour
			elseif plr.Team.Name == "Student" then
				team.TextColor3 = StudentColour
			elseif plr.Team.Name == "Staff" then
				team.TextColor3 = StaffColour
			elseif plr.Team.Name == "Council" then
				team.TextColor3 = CouncilColour
			end
		end)
	end)

Use what weakroblox35 used.

I just tried this, it didn’t work either.
nothing in output.

I have nothing that prints in output?

I tried your script and it didn’t work :sob:

OH

IT DID

my billboardgui doesn’t clone into the head, but you put Parent.Parent.Parent, which went to workspace, so i changed it to Parent.Parent and it worked

thank you!

1 Like

I meant there was no errors, not any print statements lol

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.