I have been researching a lot and I haven't found anything about cancelling a GUI Tween. Is this even possible to do?

bar:TweenSize(UDim2.new(1,0,bar.Size.Y.Scale,0),"Out","Linear",harvestingTime)

3 comments

0

well when yopu want to cancel it save the position of it (i.e local posCurrently = GuiObject.Position) and after it finished set the Gui object's position to the saved (i.e GuiObject.Position = posCurrently)

0

you*

0

It is easy... bar:TweenSize(UDim2.new(1,0,bar.Size.Y.Scale,0),"Out","Linear",harvestingTime,true) <-- true is the override.. then you just need to tween it to the position its at..