Tweening issue with unfamiliar delay

Guys, here i will provide sample code to introduce my issue

local Box = workspace:WaitForChild("Box")

local TweeningService = game:GetService("TweenService")
local Info = TweenInfo.new(0.5, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut, 0, false)

local PointPoses = {
	Box.Position+Vector3.new(0, 5, 0),
	Box.Position+Vector3.new(7, 8, 0),
	Box.Position+Vector3.new(15, 15, 0),
	Box.Position+Vector3.new(18, 24, 0)
}

wait(2)

for i,pos in ipairs(PointPoses) do
	local goal = {Position=PointPoses[i]}
	local anim = TweeningService:Create(Box,Info,goal)
	anim:Play()
	anim.Completed:Wait()
end

after each time animation is completed, game is doing little delay before going forward, how can i fix this?

I assume this is because of the nature of the sine graph, where it flattens out towards 0 at the end.

You can test if this is the case by replacing the Sine easing style with linear, and seeing if the delay still occurs.

1 Like

TYSM for responc, figured out and after saw your reply, we both are right :grinning: