Is there any way to pause an animation on the last frame?

im trying to pause the animation on the last frame (1:10). i have a “pauseAnim” marker on 1:10 as well but i cant get it to pause.

game.Players.PlayerAdded:Connect(function(p)
	p.CharacterAdded:Connect(function(c)
		wait(3)
		local anim = script.Animation
		local m6d = game.ReplicatedStorage.riggy.HumanoidRootPart.plateyuh:Clone()
		m6d.Parent = c.HumanoidRootPart
		m6d.Part0 = c.HumanoidRootPart
		m6d.Part1 = workspace.plateyuh
		local hum:Humanoid = c.Humanoid
		local animtrack:AnimationTrack = hum.Animator:LoadAnimation(anim)
		animtrack:Play()
		animtrack:GetMarkerReachedSignal("pauseAnim"):Connect(function()
			animtrack:AdjustSpeed(0)
		end)
	end)
end)

problem:

how it should look like:

EDIT: NVM i got it. sorry guys. i have no idea what was going on… ty!

1 Like