Animation delayed heavily for no reason

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear! I want to make 1 animation play right after I stop the other one

  2. What is the issue? Include screenshots / videos if possible! The second animation delays heavily:


    The first animation should play right after the other, but as you can see, theres a delay.
    The First Animation:

    The Second Animation:

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub? I looked in the forum, but found nothing. I also tried tweaking the script a little bit but it still didnt work.

This is the script that plays the animations:

local RecoilFastTrack

Charge.AnimationId = "rbxassetid://131958976063185"
Pose.AnimationId = "rbxassetid://99910982141960"
Slow.AnimationId = "rbxassetid://131648827751433"
MidFast.AnimationId = "rbxassetid://97439751892031"
RecoilMid.AnimationId = "rbxassetid://100072788868872"
RecoilFast.AnimationId = "rbxassetid://74979604171195"


game.ReplicatedStorage.Remotes.BumpCharge.OnServerEvent:Connect(function(player)
	ChargeTrack = player.Character.Humanoid:LoadAnimation(Charge)
	PoseTrack = player.Character.Humanoid:LoadAnimation(Pose)
	player.Character.Humanoid.WalkSpeed = 0
	ChargeTrack:Play()
	ChargeTrack.Stopped:Connect(function()
		PoseTrack:Play()
	end)
end)


game.ReplicatedStorage.Remotes.Bump.OnServerEvent:Connect(function(player)
	print("worked")
	local velocity = workspace.Ball.AssemblyLinearVelocity.Magnitude
	local SlowLimit = 5
	local MidLimit = 20
	local FastLimit = 30
	SlowTrack = player.Character.Humanoid:LoadAnimation(Slow)
	MidFastTrack = player.Character.Humanoid:LoadAnimation(MidFast)
	PoseTrack:Stop()
	if velocity < SlowLimit then
		SlowTrack:Play()
	elseif velocity > SlowLimit and velocity < MidLimit then
		MidFastTrack:Play()
	end
	SlowTrack:GetMarkerReachedSignal("start"):Connect(function()
		local hitbox = Instance.new("Part")
		hitbox.Size = Vector3.new(5,5,5)
		hitbox.Transparency = 0.5
		hitbox.Anchored = true
		hitbox.CFrame = player.Character.HumanoidRootPart.CFrame * CFrame.new(0,0,-2)
		hitbox.Parent = workspace
	end)
end)
2 Likes