My tween script doesn't work properly

Hello! I recently made a tweenposition script and it’s supposed to tween the frame’s position in 10 seconds but instead it does it in 1 second (default tweenposition time) . I have no idea what could be causing this issue.
Any help would be very appreciated! :smile:
Script:

script.Parent.loading.LoadingBar:TweenPosition(UDim2.new(0.183, 0,0.782, 0),'Out','Quad',true,10)
2 Likes

I think you have the fourth and fifth arguments backwards. Fourth one should be the time, fifth one is the override (which I’m assuming the boolean here is for).

Try this instead:

script.Parent.loading.LoadingBar:TweenPosition(UDim2.new(0.183, 0,0.782, 0),'Out','Quad',10,true)
2 Likes

Oh yeah :sweat_smile:
Thank you so much for your help!

1 Like