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.
