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

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

Asked by 4 years ago

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!

0
You will need to use a BillboardGui, and update it to the Player's team. JoyfulPhoenix 139 — 4y
0
Tutorial you can start out with: https://www.youtube.com/watch?v=-MsFqGCtn2k royaltoe 5144 — 4y
0
check the description after you finish the video if your script doesnt work then come back here if/when you have anymore questions royaltoe 5144 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago
Edited 4 years ago

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)
Ad

Answer this question