generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Billboard guis confuse me.

Previous Thread :: Next Thread 
Fresh_Effect is not online. Fresh_Effect
Joined: 05 Feb 2012
Total Posts: 1342
21 Jun 2017 09:59 AM
I have one billboard gui which is simple an image label that always stays the same size relative to the player when I zoom in or out.

However, I also have a textlabel which increases as I zoom out.


Is there a way I can make the textlabel stay the same size relative to the player when I zoom in and out?


Report Abuse
Lightning_Dev is not online. Lightning_Dev
Joined: 24 Feb 2016
Total Posts: 380
21 Jun 2017 10:03 AM
turn off text scaling for the textlabel


Report Abuse
Fresh_Effect is not online. Fresh_Effect
Joined: 05 Feb 2012
Total Posts: 1342
21 Jun 2017 10:09 AM
It is off.


Report Abuse
Lightning_Dev is not online. Lightning_Dev
Joined: 24 Feb 2016
Total Posts: 380
21 Jun 2017 10:15 AM
sorry i made a mistake

if you want a TextLabel inside a BillboardGUI to not change size with distance, you have to make sure that both the BillboardGUI and TextLabel are using Scale and not Offset for their sizes


Report Abuse
Lightning_Dev is not online. Lightning_Dev
Joined: 24 Feb 2016
Total Posts: 380
21 Jun 2017 10:22 AM
I think ROBLOX made it more confusing than it needed to be, but this is how it works;

For a GUI to not scale inside a BillboardGUI, both Offset X and Offset Y values have to be set to 0. You will need to use Scale to size the GUIs.

This is what the ROBLOX wiki says;

"A BillboardGui is drawn at the position of a Part but will always face the player. If the part moves the BillboardGui will move with it. If the size of the BillboardGui is set using only the Scale components of it's API:Class/BillboardGui/Size UDim2 then it will scale based on distance to the player (i.e. it will get bigger as the player gets closer, will get smaller as the player goes farther). If the Offset of the Size is set then the BillboardGui will maintain the same size regardless of distance to the player."

wiki.roblox.com/index.php?title=The_Fundamentals_of_Scripting_with_GUIs#BillboardGui


Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image