I am making it so this line of code here:
makes the green frame
become smaller in size from right to left. However, the rest of the script runs fine EXCEPT for the tweening of this green bar.
I checked the hierarchy in the Explorer tab and everything is fine.
What is wrong with my code?
EDIT: If this helps:
abilityGUI is a ScreenGUI
MainFrame is a Frame with a UICorner
Bar is a Frame with a UICorner
SlidingPart is a Frame with a UICorner