Hello!
I would like to know how I can put a timeout in the time that the block is to return to where it was.
when the interpolation ends at the indicated position when I activated the option "Reverse" (true) It does not wait for 1 second and returns to the position it was in. How can I make him wait a few seconds and then go back to where he was?
Script:
local Part1, Part2 = script.Parent.PartA, script.Parent.PartB;
local tweenInfo = TweenInfo.new(
2,
Enum.EasingStyle.Linear,
Enum.EasingDirection.Out,
0,
true,
2
)
local a = TweenService:Create(Part1, tweenInfo, {Position = Vector3.new(81, 5, 197)})
local b = TweenService:Create(Part2, tweenInfo, {Position = Vector3.new(99, 5, 203)})
while wait()do
a:Play()
b:Play()
end

1 comment
use a wait(1)