How can i smoothly tween the progress bar, so the green line wouldn’t jump but it would smoothly tween?

So this is my problem if u go play my obby and u get to next stage, then the green line would jump but, does someone how i can make it smoothly tween

My game : Fun Obby! - Roblox

Sorry i don’t have a video to show it and this is again one of my first topics so that’s why it not that good. Bye and have a nice day :smirk:

2 Likes

You can use TweenPosition which is quite easy to use. Here is the documentation:

Thx for ur reply i think it would help me alot bc i didnt try it :laughing:

In your case it looks like you are tweening the size instead. For that I recommend using TweenService.

2 Likes

But i’m not really a scripter/programmer so i dont know what that means i’ll dm u the script im using and if u want u can send it back but with the tweening thingy, thank you.

There’s a function called TweenSize.

2 Likes

And can u explain how i can use it exactly? Or is it better if i dm u the script im using and u can dm me back with the TweenSize script if u want?.

Here’s an example of how to use it.

--GuiObject is an example instance

GuiObject:TweenSize(UDim2.fromScale(0, 1), Enum.EasingDiection.Out, Enum.EasingStyle.Linear, 1, true, function()
    print("completed")
end)

--parameter info

--size: a UDim2 that's the size you want it to tween it to
--easingdirection
--easingstyle
--time: how much time you want it to take
--override: a bool, if true, overrides any current tweens sizing the object
--completion function: a function to be called when it's completed

This code example shows all the parameters and explains them, you don’t need to use all of them.

2 Likes

I’m not an pogrammer so i can’t use this example for my script, but is it fine if u can help me with it i’ll dm u with the script and can u dm me back with the script but with the tween thing in it?