Hi guys, how are you? This is my first post here and I hope that I’ll be able to fix my issue.
I’m trying to create a billboard parented to player’s head but it does not work: I’m only able to parent it directly on character. This is my simple code:
-- script inside Workspace
local player = game:GetService("Players").PlayerAdded:Wait()
local character = player.CharacterAdded:Wait()
local head = character:WaitForChild("Head")
local billboard = Instance.new("BillboardGui")
local textlabel = Instance.new("TextLabel")
billboard.Size = UDim2.new(0,100,0,70)
billboard.SizeOffset = Vector2.new(0,1)
textlabel.Size = UDim2.new(1,0,1,0)
textlabel.Text = "LOREM IPSUM"
textlabel.Parent = billboard
billboard.Adornee = character
billboard.Parent = character
When billboard is parented to character, everything works fine and I can see the billboard object in Workspace, under the player model:
but when I change the last two code lines above in:
billboard.Adornee = head
billboard.Parent = head
billboard does not appear at all and there is nothing under player.Head and I do not get any error.
Where I’m making mistake?
I use Roblox Studio Version 0.511.0.5110267 (64bit) on Windows 10 Pro X64
Thanks in advance for any help