Animation playing weirdly on NPC's

hi there, I have been experiencing this weird bug recently.

here’s a video of it:
https://gyazo.com/5d0904641f822a2cef08edcabee27235
image
the animation should be something like this
image
i already tried changing it to the highest priority but seems doesn’t work.
looks useless but here’s the code:

local Loaded = Animator:LoadAnimation(HoldBox)
Loaded.Priority = Enum.AnimationPriority.Action4
Loaded:Play()

Make sure the NPC is a proper R15 rig, with all the motor6ds required.

if you are welding the box to the character using Motor6D, you gotta make sure that the Position and Orientation is set right

welp i got it from the Rig Builder idk if they’re the same

its not a motor6D. Its just a weldconstraint welded to the HumanoidRootPart

Then the motor6ds must be okay, as @yO_eyDev said, make sure you are using a Motor6D to attach the box to the NPC. Motor6D basically makes it animatable, let me know if you need more help.

ok so ima just going to use the Motor6D method? and get rid of the Animation

No, you don’t get rid of the animation, Motor6Ds are the ones that make the animations work. Basically, all you got to do is, delete the weldconstraint and replace it with a Motor6D. A motor6d has pretty much the same properties as a weld, it just makes instances animatable. For example, your character is rigged by motor6ds and thats how all the animations work in it.

You can insert a motor6d from explorer and define its part0 and part1, or you can do it from a script, works both ways.

welp still doesn’t work
code:

local function Motor6DThem(p0, p1)
	local Motor6D = Instance.new("Motor6D")
	Motor6D.Part0 = p0
	Motor6D.Part1 = p1
	Motor6D.C0 = CFrame.new(0, 0, 2)
	Motor6D.Parent = Motor6D.Part0
end
Motor6DThem(v.PrimaryPart, UpperTorso)

edit: it attach very well but the animation is still weird

I see, did you make sure you got rid of the weld constraint? If yes, please double check the animation, also set cancollide to off in the properties tab of the box instance.

yup im pretty sure. But i got it fixed by using my rig but thanks for helping tho

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