Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Billboard gui not "anchored"?

Asked by
iNicklas 215 Moderation Voter
8 years ago

Hi, i have a custom health gui along side level and name over an enemy, which is gonna be used in my rpg.

But when my "creature" walks, the gui is like wobbling behind him.

I have seen in the newest RPG, that his GUI is staying above the head, whether it jumps or move.

0
Where is the billboard gui parented/adornee'd? To the HumanoidRootPart? Torso? XAXA 1569 — 8y
0
It is parented to the model basically. Should i do the head? iNicklas 215 — 8y
0
I would suggest parenting it to the HumanoidRootPart. Unlike the head, the HumanoidRootPart cannot be animated. XAXA 1569 — 8y

1 answer

Log in to vote
1
Answered by
XAXA 1569 Moderation Voter
8 years ago

Parent/Set the Adornee of the BillboardGui to the Model's HumanoidRootPart. If the BillboardGui is parented to a Model, it is centered at the bounding box of the model. Since the bounding box of the model changes as it animates, the BillboardGui moves along with it.

Though you could have used other body parts, like Torso or Head, the HumanoidRootPart does not animated at all.

Ad

Answer this question