Health Bar UI Help

So i made a simple health bar , it works , Although theres one thing i wanna fix and i cant seem to fix it is when the health decreases the frame that shows the health increases by a pixel at the bottom i dont want it to increase i want it to remain the same

Heres a video which explains it better:-
robloxapp-20241114-1952273.wmv (278.4 KB)

Heres a link to the model i made (Feel free to experiment with it and let me know if a fix is found):-

Any help is appreciated
Thanks

1 Like

This is because the frame you are tweening has size {0, 206}, {0, 21}.
You would want this to use scale here so you have to change the size of your frame to UDim2.new(1, 0, 1, 0)

Also :TweenSize() is depecated so it might be worth switching to TweenService:Create().