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

How do I put the team someone is in above their head?

I wanted to create a script that puts the team name above their name in game. For example, I’ll use Judge, how would I make it so that someone can can join the judge team and get Judge above their name, this should work with other teams as well. Your guidance and help would be greatly appreciated, thank you!

3 comments

0

You will need to use a BillboardGui, and update it to the Player's team.

0

Tutorial you can start out with: https://www.youtube.com/watch?v=-MsFqGCtn2k

0

check the description after you finish the video if your script doesnt work then come back here if/when you have anymore questions

1 answer

you could create a BillboardGui in the player's heads when they spawn, and then create a TextLabel with the team name written inside the BillboardGui. so like this:

team = "Red" -- assuming that "team" is the player's team name

player.CharacterAdded:Connect(function(char) -- char is the player's character once it's created
	local bgui = Instance.new("BillboardGui", char.Head)
	local text_label = Instance.new("Text", bgui)
	text_label.Text = team
	-- you can even add a code for the team colors below here, if you wish so
end)

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