AK-47 Idle Animation

Hello!

I have one big problem. I tried to remake old Gun System. I was remaking anims, but old animation is one that is only working. It’s somehow stops on last frame, but mine isn’t. Here’s Video:
Video_1

1 Like

Perhaps this can help, you can pause/freeze the animation near the final position so that it doesn’t stop unwanted such as in your case:

function freezeAnimationAtTime(animationTrack, timePosition)
	if not animationTrack.IsPlaying then
		-- Play the animation if it is not playing
		animationTrack:Play()
	end
	-- Set the speed to 0 to freeze the animation
	animationTrack:AdjustSpeed(0)
	-- Jump to the desired TimePosition
	animationTrack.TimePosition = timePosition
end

function freezeAnimationAtPercent(animationTrack, percentagePosition)
	if not animationTrack.IsPlaying then
		-- Play the animation if it is not playing
		animationTrack:Play()
	end
	-- Set the speed to 0 to freeze the animation
	animationTrack:AdjustSpeed(0)
	-- Jump to the desired TimePosition
	animationTrack.TimePosition = (percentagePosition / 100) * animationTrack.Length
end

local animation = Instance.new("Animation")
animation.AnimationId = "rbxassetid://507765644"

local humanoid = script.Parent:WaitForChild("Humanoid")
local animator = humanoid:WaitForChild("Animator")
local animationTrack = animator:LoadAnimation(animation)

freezeAnimationAtTime(animationTrack, 0.5)
freezeAnimationAtPercent(animationTrack, 50)

It isn’t working. I think there is animation problem, not scripting one

Also ID for this anim is

94242777 (Working one)

Maybe make sure the animation isn’t being overrun by the default movement/idle anims

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