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

Adornee not working?

Asked by 8 years ago

For some reason now I can't get my BillboardGui Adornee to follow the head of a player. Here is the code.

The following code is in a normal script:

--The BillboardGui is placed in StarterGui
function playerAdded()
local clone = script.Parent:Clone() --Clones the BillboardGui
clone.Parent = script.Parent.Parent.Parent.Character.Head --Places it in the character's head
script.Parent.NameScript.Disabled = false --Enables the NameScript
end
game.Players.PlayerAdded:connect(playerAdded())

The following code is in a local script: (NameScript)

script.Parent.a.Text = script.Parent.Parent.Parent.Name --Sets the text to the name of the player model
script.Parent.Adornee = script.Parent.Parent --This is setting the Adornee to the players head.

1 answer

Log in to vote
0
Answered by 8 years ago

I solved it myself.

Ad

Answer this question