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

How do you make a billboard gui shrink as you go further away?

Asked by
Acheo 230 Moderation Voter
8 years ago

I've noticed in games like Trade Hangout that as a user walks away from another user, the gui over their head shrinks. But anytime I've attempted this, the gui continues to remain the same. How could I have the gui shrink the further you are?

I'm not asking for a script for this, I'm wondering what the method is.

0
Depending on the player's Magnitude from another player change the FontSize or Size of the gui. iFlusters 355 — 8y

1 answer

Log in to vote
0
Answered by 8 years ago

You can use the BillboardGui's Size property for this. The Scale components of the UDim2 used for it are relative to how large a Stud is at the the BillboardGui's distance from the camera. So if you set the property to UDim2.new(4,0,1,0) it would be the same size as a Part if it were 4 studs wide, 1 stud tall, and 0 studs deep if it were facing straight at the camera.

0
So wait, using Scale will help this? Acheo 230 — 8y
0
That isn't true!! I tested it marketmanager1 52 — 6y
0
Indeed, does not work whatsoever IScriptThat 5 — 5y
Ad

Answer this question