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

Why does my name tag not work?

Asked by 7 years ago
Edited 7 years ago

This is just suppose to be a name tag for each player. I want the billboard gui to go into the player when they join and have the text label that shows their name go inside the billboard gui. My script does not work and is not giving any output help Please!



player = game.Players.LocalPlayer hum = player.Character.Humanoid game.Players.PlayerAdded:connect(function(plr) local bill = game.ReplicatedStorage.BillboardGui:clone() local Textlabel = game.ReplicatedStorage.BillboardGui.TextLabel() Textlabel.Parent = bill bill.Parent = plr Textlabel.Text = plr.Name Textlabel.Font = "Legacy" Textlabel.Scaled = true Textlabel.BackgroundTransparency = 1 end)
0
PlayerAdded doesn't work on localscripts. rexbit 707 — 7y

1 answer

Log in to vote
0
Answered by
Etheroit 178
7 years ago
Edited 7 years ago

Man try this PS Paste this to Script and parent it to ServerScriptsService

game.Players.PlayerAdded:connect(function(plr)
plr.CharacterAdded:connect(function(char)
local bgui = game.ReplicatedStorage.BillboardGui:Clone()
bgui.Textlabel.Text = plr.Name
bgui.Textlabel.Font = "Legacy"
bgui.Textlabel.Scaled = true
bgui.Parent = char
end)
end)
0
Thank you!! :) ZeonMaxwelll 75 — 7y
0
No problem. I wish you good luck with scripting ;) Etheroit 178 — 7y
Ad

Answer this question