Hello. I’m having a problem where I have this really basic health script I’ve used this before but I can’t seem to figure out how to make it work the opposite! way. Right now it does this
And I need it to do this when lowered
This is a really basic script and is very commonly used if you have any suggestions or ideas on how I can have it tween in the opposite direction that would be very much appreciated!
Heres the script I have.
Humanoid.HealthChanged:Connect(function(newHeath)
local MaxHP = Humanoid.MaxHealth
if MaxHP then
if newHeath > 0 then
script.Parent:TweenSize(UDim2.new(newHeath/MaxHP,0,1,0), "In", "Quad", .25)
else
script.Parent.Size = UDim2.new(0,0,1,0)
end
end
end)