Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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)

2 comments

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.

0

Use 2 scripts?

1 answer

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

This discussion is preserved as it was. New answers, comments, and votes are closed.