My Frame Wont Tween!

So I Recetly Got Help With My Tween Speed But…
I am Doing a Test Loading Screen And This Won’t Work ( Its a progress Bar )

local MovingBar = script.Parent

wait(2)
  MovingFrame:TweenSize(
  UDim2.new(1,0,1,0)
  Enum.EasingDirection.In,
  Enum.EasingStyle.Linear
3
)

Its Probaly Really SImple But Can Anyone Help?

Oof, you’re not referencing the variable provided as @20amir02 mentioned (I swear I skim through way too quickly)

You’re also not separating the parameters given while using TweenSize()

Try this:

local MovingBar = script.Parent

wait(2)
MovingBar:TweenSize(
    UDim2.new(1,0,1,0),
    Enum.EasingDirection.In,
    Enum.EasingStyle.Linear,
    3
)
1 Like

you defined the frame as MovingBar but you called MovingFrame instead

2 Likes

Wow I am actually Stupid :confused: Thanks For Your Help. It works

1 Like