GUI not Tweening properly

Hi I’ve been working on a Health Bar for my game, but I can’t seem to get it work right. The main issue is that when the health changes the x length doesn’t go back to the same length as before when the player returns to max health, and the y length gets longer
image
this is the code I wrote

Why are you dividing it with 3.27 and got 82 Offset as Y axis? Are those bars even in the background of the progress bar? The green bar should be inside of the gray Frame on the Explorer, in the script you will just do

Udim2.new(DMG / humanoid.MaxHealth, 0,1,0)
1 Like

This solved the problem thank you

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.