I’m trying to make a brick follow a route of bricks using TweenService. But the thing I want to do, is smoothly change the duration of the Tween. I want the part to actually slow down to the to the new duration. How can I do this? Whenever I try to change the duration to like 2 seconds, it just instantly tweens the part with the new speed.
This is my code:
for i = 1, 230 do -- The amount of bricks
local v = workspace.Track:FindFirstChild(i)
local waitingtime = 1
local TweenInfo = TweenInfo.new(
Time,
Enum.EasingStyle.Linear,
Enum.EasingDirection.Out,
0,
false,
0
)
TweenService:Create(Part, TweenInfo, {CFrame = v.CFrame}):Play()
wait(waitingtime)
end
I’m not sure that would be possible with tweening. But maybe with a for…do loop? And adding a delay that gets incrementally bigger/smaller example: delayTime = delayTime*0.01
or changing the amount your object is moved each time it runs through the loop.