Animation Pause

Any way to pause an animation, but keep it applied to the body parts?
I tried using KeyframeReached, GetMarkerReachedSignal, and tried doing the idle animation, but nothing works.
Here is my current code: (LOCAL SCRIPT)

tool.Activated:Connect(function()
	if aiming == false then
		aiming = true
		local anaim = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(aimanim)
		anaim:Play()
		anaim.KeyframeReached:connect(function(keyframeName)
			if keyframeName == "Pause" then
				anaim:AdjustSpeed(0)
			end
		end)

I spent a lot of time attempting to fix it, but I haven’t gotten a result. Any help would be appreciated!

That’s what I’m talking about. It doesn’t work.

Sorry, missed that part, can you try printing the keyframe name at the start of the connection and see if one named “Pause” is actually reached?

I’m guessing the Pause keyframe is the last one in the animation, try inserting another keyframe right before Pause called PrePause and adjust the speed when it’s reached

2 Likes