Character briefly teleports after blender animation

after animations ends my character is teleported for a short period of time unsure what could be causing this tbh

if rayResult and rayResult.Instance:HasTag("EndPoint") then
	connection:Disconnect()
	climbTrack:Stop()
				
	vaultTrack:Play()
	camera.CameraSubject = Head
				
	task.wait(5) -- (I tried using vaultTrack.Ended:Wait() but it resulted in me just teleporting to the starting point of animation for brief second instead)
				
	camera.CameraSubject = Humanoid
	Camera.CameraType = Enum.CameraType.Custom
	runService:UnbindFromRenderStep("mouseStuff")
	humPart.CFrame = stablePart.Parent.FinalCFrame.CFrame
				
	Humanoid.AutoRotate = true
	Humanoid.WalkSpeed = 10
	humPart.Anchored = false

	climbAnim:Destroy()
	vaultAnim:Destroy()
	prompt.Enabled = false
end
1 Like

Try calling climbTrack:Stop() with the fadeTime argument set to 0.

Track ended wait should work.

But you should move the position value not by animations and only animate the limbs.

What you are looking for is sort of like root motion. This can help you gain an idea of what is happening when you use track ended wait.

3 Likes

Animations aren’t my thing but this is probably the solution.

2 Likes

So what you tried to say here is that I should stop using MasterControl and instead move position via limbs like I did in 2nd half of the animation? Sorry if it’s a stuipid question all of my animations before did not involve me setting character’s cframe after the animation due to being stationary

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.