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

Billboard GUI Above head not working?!

Asked by
Jurdy 0
9 years ago

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 :(

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) BlackJPI 2658 — 9y

1 answer

Log in to vote
1
Answered by
Tkdriverx 514 Moderation Voter
9 years ago

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.

Ad

Answer this question