So, this battery is supposed to represent health, but it re sizes for some reason. I don't know if I typed n the size wrong in the script, I don't know. Please look at these pictures to help answer this problem.
wait(.3)
Par=script.Parent.Parent.Parent.Parent.Parent
while true do
wait()
Heal=Par.Character.Humanoid
wait()
script.Parent.Parent.Health.Value=Heal.Health
script.Parent.Parent.Total.Value=Heal.MaxHealth
Min=150/Heal.MaxHealth
script.Parent.Size=UDim2.new(0,Min*Heal.Health,1,0)
end
REALLY LOOK AT THESE PICTURES TO HELP ANSWER THE PROBLEM!
