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

Why does my name tag not work?

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)

1 comment

0

PlayerAdded doesn't work on localscripts.

1 answer

✓ Accepted answer

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)

2 comments

0

Thank you!! :)

0

No problem. I wish you good luck with scripting ;)

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