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: Health Bar Gui Scale Help.

Previous Thread :: Next Thread 
RubyEpicDragon is not online. RubyEpicDragon
Joined: 02 May 2015
Total Posts: 1211
07 Nov 2016 11:09 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
RubyEpicDragon is not online. RubyEpicDragon
Joined: 02 May 2015
Total Posts: 1211
07 Nov 2016 11:12 AM
bump!
Report Abuse
RubyEpicDragon is not online. RubyEpicDragon
Joined: 02 May 2015
Total Posts: 1211
07 Nov 2016 11:17 AM
Is anyone gonna help?
Report Abuse
RubyEpicDragon is not online. RubyEpicDragon
Joined: 02 May 2015
Total Posts: 1211
07 Nov 2016 11:19 AM
Bump!

(2)
Report Abuse
Wunder_Wulfe is online. Wunder_Wulfe
Joined: 13 Sep 2016
Total Posts: 8356
07 Nov 2016 11:22 AM
Are you serious

Use UDim2's lerp function and lerp from 0,0,0.1,0 to 1,0,0.1,0 with health/maxhealth as the alpha or use health/maxhealth for the X Scale
Report Abuse
Wunder_Wulfe is online. Wunder_Wulfe
Joined: 13 Sep 2016
Total Posts: 8356
07 Nov 2016 11:24 AM
Also learn more about lua before doing what you are as you keep spamming way too many posts including annoying duplicate posts
Report Abuse
RubyEpicDragon is not online. RubyEpicDragon
Joined: 02 May 2015
Total Posts: 1211
07 Nov 2016 11:26 AM
yes but when the player has over 9000 health, i don't want the gui to go out of the screen.
Report Abuse
Wunder_Wulfe is online. Wunder_Wulfe
Joined: 13 Sep 2016
Total Posts: 8356
07 Nov 2016 11:27 AM
It doesnt go off the screen child
Do you have readin issues?

health/maxhealth

Go back to middle school to learn math
9000/9000 = 1
Report Abuse
RubyEpicDragon is not online. RubyEpicDragon
Joined: 02 May 2015
Total Posts: 1211
07 Nov 2016 11:28 AM
oh... k, thanks.
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