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
 

Gui scale not right when... How to fix?

Previous Thread :: Next Thread 
RubyEpicDragon is not online. RubyEpicDragon
Joined: 02 May 2015
Total Posts: 1211
07 Nov 2016 11:22 AM
I need help with making a health bar.
If the player has 0 - 100 (max)health then the gui has the right scale but if a player has more than 100 (max)health then it would't be right anymore!
how do I make that the scale will always be
UDim2.new(0, 0, 0.1, 0)
or
UDim2.new(1, 0, 0.1, 0)
not bigger or smaller than that whatever the players health is.
how do i make this right?
Report Abuse
Auzer is not online. Auzer
Joined: 24 Dec 2011
Total Posts: 1590
07 Nov 2016 12:06 PM
UDim2.new(Humanoid.MaxHealth/Humanoid.Health, 0, 0.1, 0)


Report Abuse
Auzer is not online. Auzer
Joined: 24 Dec 2011
Total Posts: 1590
07 Nov 2016 12:07 PM
*Humanoid.Health/Humanoid.MaxHealth


Report Abuse
RubyEpicDragon is not online. RubyEpicDragon
Joined: 02 May 2015
Total Posts: 1211
08 Nov 2016 10:14 AM
thx!
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