Hi!
I’d like to have a loop, for an information screen, using a screengui.
It’d be useful if the script paused automatically before continueing with the next tween. I think believe to remember that it was like that in the past, but I’m not sure.
GUI:TweenPosition(Udim2.new(1,0,1,0),"Out","Quad",5)
print("Done with first!")
GUI:TweenPosition(Udim2.new(0,0,,0),"Out","Quad",5)
I don’t think so. Maybe you could look for your old code and see if you can find what you did? I still think a wait is the only way. I’ve never seen anyone else do it another way.
The Tween members on UI objects shouldn’t be used because they have strange limitations and TweenService can do everything that these methods can and more. The tween methods on UI will probably be deprecated at some point. Use TweenService instead. You can wait for the tween to complete like so:
local tween = TweenService:Create(Gui, TweenInfo.new(...), {Position = ...})
-- OPTION 1:
tween:Play()
local state = tween.Completed:Wait()
-- do action after tween
-- OPTION 2:
tween.Completed:Connect(function(state)
-- do action after tween
end)
tween:Play()