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)
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)
This discussion is preserved as it was. New answers, comments, and votes are closed.
3 comments
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)
you*
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..