|
| 22 Nov 2014 10:22 PM |
local char = script.Parent.Parent.Parent.Parent.Character hum = char.Humanoid hum.Changed:connect(function() script.Parent.Size = UDim2.new(hum.Health/hum.MaxHealth,0,0.013,0) end)
The health bar keeps on getting resized really big on the x axis
Where full health is supposed to be on the bar, its at 15.
Siggy enough for you m8? |
|
|
| Report Abuse |
|
|
|
| 23 Nov 2014 08:32 AM |
Bump
Siggy enough for you m8? |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 23 Nov 2014 10:43 AM |
this is a free model script that works maybe this can help you
local PositionX = script.Parent.Position.X.Offset local initX = script.Parent.Size.X.Offset
while true do wait() local PlayerHealth = script.Parent.Parent.Parent.Parent.Parent.Character.Humanoid.Health local PlayerMaxHealth = script.Parent.Parent.Parent.Parent.Parent.Character.Humanoid.MaxHealth local Pie = (PlayerHealth / PlayerMaxHealth) --Missed Scale script.Parent.Size = UDim2.new( 0, initX*Pie, 0, 20)
end
|
|
|
| Report Abuse |
|
|
|
| 23 Nov 2014 11:49 AM |
| debugger can be attached to a script. thats what it says.. |
|
|
| Report Abuse |
|
|