"Frame is not a valid member of BillboardGui "Overhead" even though it is

Probier mal oben auf test zu gehen local server und 5 player oder so und dann bei wie vielen es geht

Keinem einzigen.β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž

I dont think that the head is the issue here. Also he said he needs to support every head. If the head is the issue he could also just make a fake invisible default head to hold the ui

1 Like

Γ„nder deinen character mal zu einem anderen aussehen und guck dann

Good idea.

Players.PlayerAdded:Connect(function(plr)	
	plr.CharacterAdded:Connect(function()
		local oh = ServerStorage.Overhead
		local overheadClone = oh:Clone()
		local regionCode = LocalizationService:GetCountryRegionForPlayerAsync(plr)
local placeholder = Instance.new("Part")
placeholder.canCollide = false
placeholder.Name = "fakeHead"
placeholder.Parent = plr.Character
local weld = Instance.new("Weld")		
weld.Parent = placeholder
weld.Part0 = plr.Character.Head
weld.Part1 = placeholder



		overheadClone.Parent = placeholder
		overheadClone.Frame.Value.Text = "Avatar Value: \u{E002} "..getAvatarValue(plr.UserId)
		overheadClone.Frame.Location.Text = "Location: "..countryEmojiTable[regionCode].." "..countryTable[regionCode]
		-- it errors above this line
	end)
end)

just wrote the extra part in. check for bugs

an even better idea is to put the ui into the HumanoidRootPart and just up its y position so it appears above the head. Doing it this way reduces the ammount of new instances being made and at the end parts having to be loaded

certain player packages could break that. The effect to performance that two instances has is negligible.

1 Like

Same error happening.β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž

Really weird error have you tried reopening roblox studio?

Yes, multiple times.β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž

Thats really weird ask your friend to try and do the test with 5 players

He did, and it works for him.β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž

This bug is really weird. I just loaded in with the same setup and avatar item and it worked for me

Including the β€œCheeky” head?β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž

Yes, and it still functioned without any errors

That’s weirdβ€¦β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž

can you make a screenshot of the cloned overhead inside your character?

That’s the thing, it isn’t there, even though it’s parented to the head. Neither does the placeholder part show up.

Players.PlayerAdded:Connect(function(plr)	
	plr.CharacterAdded:Connect(function()
		local oh = ServerStorage.Overhead
		local overheadClone = oh:Clone()
		local regionCode = LocalizationService:GetCountryRegionForPlayerAsync(plr)
		
		overheadClone.Parent = plr.Character.Head
		overheadClone.Frame.Value.Text = "Avatar Value: \u{E002} "..getAvatarValue(plr.UserId)
		overheadClone.Frame.Location.Text = "Location: "..countryEmojiTable[regionCode].." "..countryTable[regionCode]
        overheadClone.Parent = plr.Character.Head
		-- it errors above this line
	end)
end)

Try setting the parent last

3 Likes

Finally, that works! Thank you!
image

2 Likes