How would I hold an animation at a certain position?

So I have an animation which makes a player hold his hand up. I want this animation to stay up until the player stops holding the button. But I don’t know how to do this. I tried looping the animation, which just makes it keep putting the players hand up. I also tried setting the speed to 0, which also doesn’t work. Thank you to anyone who tries to help me.

There was already something like this posted. How to make character remain in pose after animation finishes playing.

All you have to add to it now is just when they release the mouse then stop the animation.

2 Likes

You could probably insert a marker inside the animation, and whenever it reaches the holding up portion, where you placed the marker, it will adjust the speed, and when the button is deactivated, you reset/reverse the speed:

animationTrack:GetMarkerReachedSignal("HoldingUpHand"):Connect(function()
	animationTrack:AdjustSpeed(0)
end)

button.Deactivated:Connect(function()
	animationTrack:AdjustSpeed(-1) -- or something
end)