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!
    The issue is when I try to scale down the health bar this happens.
    But I want it to be like this :
    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.