When I set my billboardGui Adornee with a script, it works on one of the eggs but not on another even though it’s the same script. Please help.
eggClientHandler.SetBillboardGui = function()
if not currentEgg then return end
local eggModel = eggModels:FindFirstChild(currentEgg)
if not eggModel then return end
eggBillboardGui.Adornee = eggModel.PrimaryPart
eggBillboardGui.Enabled = true
end
Correct Position:

Incorrect Position:

3 Likes
Hmm, lets see what would happen if we used eggModel.Position
. Would it yield the same result?
1 Like
Wouldn’t that just error because Adornee is an object not a Vector3?
You’re right. What if you set it directly to eggModel
, then?
No, didn’t work same result.
The billboardGui Adornee works fine on the Stone Egg but not the other egg
Could you show the properties box of the eggModel
, the explorer tab, and the hitbox (hover your mouse over it) of it?
Property of Egg that’s not working:
Property of Egg that is working:
Explorer:

BillboardGui Properties:
HitBox of egg that’s not working:

HitBox of egg that is working:

Pretty strange..perhaps you could try and manually set the adornee to the eggModel? If that doesn’t work, try a specific part of the eggModel. If that doesn’t work either, try and clone the working model, and modify the properties (e.g. moving it) to those of the eggModel, and try that.
I’m stumped.
The egg that’s not working is literally a cloned version of the working egg but model slightly changed. Also, when I manually set the Adornee it works but I want to do this via script. It’s incredibly weird.