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

Billboard GUI Above head not working?!

When i enter the game i get BillboardGui in my head, and within the billboard gui is the text label. The problem is that the text label is not showing on the character for some strange reason. Please help!

game.Players.PlayerAdded:connect(function(player)
	player.CharacterAdded:connect(function(character)
		
 board = Instance.new("BillboardGui",character.Head)
	board.Active = true
	board.AlwaysOnTop = true
	board.Size = UDim2.new(0,10,0,10)
	
	gui = character.Head:WaitForChild("BillboardGui")
	if gui then
text = Instance.new("TextLabel",board)
text.Active = true
		end
	end)
end)

help :(

1 comment

0

Is it possible that because you never offset the BillboardGui that it is in the players head? Try adding: board.StudsOffset = Vector3.new(0, 2, 0)

1 answer

There are a few possible reasons:

1.) It's just not adding it to the character's head in the first place: If this is the case, then you probably need to do character:WaitForChild("Head"). The head is not always there as soon as that event fires. It usually fires just before all the body parts are added.

2.) It's not visible because it's not adorned to the head. You may need to just set the Adornee property to the head as well. Using the same WaitForChild as mentioned above, just do board.Adornee = character:WaitForChild("Head").

I hope this helps. If you have any problems or questions, please leave a comment to this answer.

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