Script not finding reference for dummy rig's head

I’m simply trying to make a test function that finds a ‘Player Test’ R15 dummy in workspace and parent a billboardUI to its head (to mimic a player). It works for the actual player and everything, and its finding the dummy as well, but its not finding the head inside the dummy for some reason.

Here’s the snippet of the code that’s not working. The debugging clearly found the workspace ‘Player Test’ dummy so I think that’s not an issue. The issue lies here in this snippet where its not finding the head inside the dummy.

local function setupTestEntityUI(testModel)
	if not testModel then 
		warn("[Debug] Test model is nil")
		return 
	end

	print("[Debug] Setting up BillboardGUI for test entity:", testModel.Name)

	-- The Head should be a direct child
	local head = testModel:FindFirstChild("Head")
	if not head then
		warn("[Debug] Head not found as direct child")
		return
	end

	print("[Debug] Found Head part:", head.Name)

	local billboardData = createBillboardUI(testModel)
	playerBillboards[testModel.Name] = billboardData

	billboardData.ui.Parent = head
	billboardData.ui.Adornee = head
	print("[Debug] BillboardGUI attached to test entity head")

Any help is appreciated, thank you!

1 Like

Maybe change FindFirstChild to WaitForChild?

1 Like