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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 08 Apr 2014 10:27 AM |
| script.Parent.Size = UDim2.new(0,health*2,0,15) |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
| |
|
|
| 08 Apr 2014 12:14 PM |
I have made one,
but i don't like share it. |
|
|
| Report Abuse |
|
|
|
| 08 Apr 2014 12:15 PM |
| give me size and where the script is in and ima fix it |
|
|
| Report Abuse |
|
|
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 |
|
|