Animation only plays 2 frames

I’m trying to make an animation (with moon animator) with frame by frame animations
the issue is, when i load them on rigs or in my own character, it only plays the first 2 frames them loops instead of playing the full animation
Video1: the animation itself
Video2: how it looks ingame


My code:

local humanoid = character:WaitForChild("Humanoid")

if humanoid then
	local animator = humanoid:WaitForChild("Animator")

	if animator then
		local animation = Instance.new("Animation")
		animation.AnimationId = "rbxassetid://95006240730878"
		
		local animationTrack = animator:LoadAnimation(animation)
		animationTrack.Looped = true
		animationTrack:Play()
	end
end

2 Likes