Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I cancel a GUI Tweeeene?

Asked by 5 years ago

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)
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) the8bitdude11 358 — 5y
0
you* the8bitdude11 358 — 5y
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.. greatneil80 2647 — 5y

Answer this question