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

How do I keep a BillboardGui's frame from expanding?

Asked by 7 years ago
Edited 7 years ago

Here's my path:

BillboardGui

Frame

TextLabel

Basically, when the player walks farther away from the gui the frame and textlabel expand VERY large. When the player gets closer it gets smaller. How do I keep it at a constant size?

Thanks!

0
Well, it sometimes depends on the properties of your other ClassObject. Try this: https://www.roblox.com/library/143418119/BillBoardGui-with-Size-based-on-Distance TheePBHST 154 — 7y

1 answer

Log in to vote
0
Answered by 7 years ago

Roblox only seems to support this if you set the AlwaysOnTop property to true.

If you don't want to use this property, you could make your own:

  • Use a SurfaceGui on a local part that is continually updated to face the player (by a LocalScript)
  • Continually check where the workspace.CurrentCamera is (its distance to the SurfaceGui) and scale the Gui accordingly (perhaps by adjusting its CanvasSize -- decreasing this increases the apparent size of the SurfaceGui). You'll have to play around to see what sort of formula works well.
Ad

Answer this question