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

Is there a way to add something to the player's head?

game.Players.LocalPlayer.CharacterAdded:Connect(function(Player)
	local gui = Instance.new("BillboardGui", Player.Head)
	local Text = Instance.new("TextLabel", gui)
end)

I don't know how to get to the model of the player when the game starts. I only know how to get to the player in Players.

2 answers

✓ Accepted answer

You should use Player.Character. Heres an example of how to use it in your script:

game.Players.PlayerAdded:Connect(function(player)
    repeat wait() until player.Character
    local char = player.Character
    local gui = Instance.new("BillboardGui", char.Head)
    local Text = Instance.new("TextLabel", gui)
end)

Remember that the default for the size will be {0,0}, so you'll need to change that to be able to see it.

1 comment

0

Thank you!

You can get the character with game.Players.LocalPlayer.character.

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