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 » Scripting Helpers
Home Search
 

Re: Custom Health GUI

Previous Thread :: Next Thread 
Afr1c4n is not online. Afr1c4n
Joined: 12 Jul 2011
Total Posts: 223
08 Apr 2014 10:01 AM
Made the GUI, I know basic scripting. I've used 3 TextLabels as the border for the health, the actual bar that I want to go down and up - health and then the last is the label saying health. How would I make the GUI work with the players health?
Report Abuse
WickedSiege is not online. WickedSiege
Joined: 03 Oct 2011
Total Posts: 3039
08 Apr 2014 10:03 AM
while true do
wait()
script.Parent.Text = math.floor(game.Players.LocalPlayer.Character.Humanoid.Health)
end


??
Report Abuse
Afr1c4n is not online. Afr1c4n
Joined: 12 Jul 2011
Total Posts: 223
08 Apr 2014 10:20 AM
Noooo I mean, how do I make the bar move from left to right, get smaller when damage is taken?
Report Abuse
islandmaker2012 is online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
08 Apr 2014 10:27 AM
script.Parent.Size = UDim2.new(0,health*2,0,15)
Report Abuse
ZirutoHellfire is not online. ZirutoHellfire
Joined: 16 Aug 2012
Total Posts: 4647
08 Apr 2014 10:29 AM
I made a pretty neat one a while back I forget the code; it's a BillboardGui so it's not what you're looking for.

The sophisticated and narcissistic polar bear of C&G.
Report Abuse
ZirutoHellfire is not online. ZirutoHellfire
Joined: 16 Aug 2012
Total Posts: 4647
08 Apr 2014 10:31 AM
But to stretch just do something like this:

while true do
script.Parent.Size = UDim.new(Character.Humanoid.Health/100, 0, 0, 0) -- replace 0's with actual numbers
end

The sophisticated and narcissistic polar bear of C&G.
Report Abuse
Afr1c4n is not online. Afr1c4n
Joined: 12 Jul 2011
Total Posts: 223
08 Apr 2014 12:11 PM
So that moves the text label depending on the health of the character?
Report Abuse
islandmaker2012 is online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
08 Apr 2014 12:11 PM
le dur
Report Abuse
Introducted is not online. Introducted
Joined: 09 Feb 2013
Total Posts: 836
08 Apr 2014 12:14 PM
I have made one,

but i don't like share it.
Report Abuse
Introducted is not online. Introducted
Joined: 09 Feb 2013
Total Posts: 836
08 Apr 2014 12:15 PM
give me size and where the script is in and ima fix it
Report Abuse
Afr1c4n is not online. Afr1c4n
Joined: 12 Jul 2011
Total Posts: 223
08 Apr 2014 12:16 PM
Could someone help meeee. Simply how do I make the health bar decrease when health decreases????
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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