Glitch with animation

  1. What do you want to achieve? Keep it simple and clear!
    So basically i making an animation for miner
  2. What is the issue? Include screenshots / videos if possible!
    For some reason in animator animation works fine, but in game it works stupid. Here is link to video: Problem - YouTube
  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub? I used same code as old, it should work

Here is code:

local Miner = script.Parent
local Animations = script.Parent:FindFirstChild("Animations")
local MiningAnim = Animations.Mining
local Humanoid = script.Parent:FindFirstChild("Humanoid")
local Animator = Humanoid:FindFirstChild("Animator")
if MiningAnim then
		local LoadedAnimation = Humanoid:LoadAnimation(MiningAnim)
	LoadedAnimation:Play()
	wait(1)
	end

Oh and also, this is only animation for this humanoid.

I think the problem is in the animation, because the Roblox Looped property is horrible so try copying the first part of the animation (where the rig lifts his hands) and paste it at the end of the animation.

I believe you should use Animator:LoadAnimation() instead of Humanoid:LoadAnimation(), as the 2nd one is deprecated.

Also, if you are doing a pose, I recommend Pose.

1 Like

Well i used it for a lot of games and it worked fine.

It will work fine, but its deprecated.

Replace Humanoid with animator, see if that helps as loading animations on humanoid is deprecated.

Also, use task.wait(). I believe wait() is deprecated.

Well this didn’t help, i tryed it. It’s don’t work. Same thing happens.

Is the humanoidrootpart anchored, and what’s the animation’s priority?

Not quite yet.

Does testing the animation on a fresh inserted rig from the “Rig Builder” work?

Humanoid Root Part is anchored, animation priority is action.