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

How would I make these two separate lines execute at the same time?

Asked by 8 years ago
script.Parent.leftBar:TweenPosition(UDim2.new(0, 0, 0, 0), "Out", "Quad", 3, true)
script.Parent.rightBar:TweenPosition(UDim2.new(0.8, 0, 0, 0), "Out", "Quad", 3, true)
0
They should run at the same time already, TweenPosition is not a YieldFunction therefore the script will automatically start on line 1 and go to line 2 without a wait. M39a9am3R 3210 — 8y
0
Use 2 scripts? lucas4114 607 — 8y

1 answer

Log in to vote
0
Answered by 8 years ago

A script would automatically run them at practically the same time without a yield function. If the script is not yielded, or temporary stopped to wait, then the script would appear as its running lines of code simultaneously

Ad

Answer this question