UI healthbar help

  1. What do I want to achieve?
    I want to make a health bar which scales down when your health goes down (I already have the script)
  2. What is the issue? Include screenshots / videos if possible!
    Screenshot_701
    The issue is when I try to scale down the health bar this happens.
    Screenshot_702
    But I want it to be like this :
    Screenshot_703
    This was done by making a frame and putting it inside the outline of the health bar, after that I put the health bar inside the frame and made the frame clip descendants. But the problem is when I scaled it with size instead of offset it didn’t work as seen in the 2nd image.