Rig Animations wont work

so basically i have a Model with motor6ds inside a HumanoidRootPart and a Part, i animating the model using moon and have a script where if the player touches it, the anim will play.
HOWEVER, the animation does not play and the model remains still
this is how the model is setup (everything unanchored in Model):
image
image



and the script i am using:

local hitdb = false
local attackAnim = script.Parent.Parent.Humanoid.Animator:LoadAnimation(script.Parent.Parent.Parent.RGAttack)
script.Parent.Touched:Connect(function(hit)
	if hit.Parent:FindFirstChild("Humanoid") then
		local struggleAnim = hit.Parent.Humanoid.Animator:LoadAnimation(script.Parent.Parent.Parent.Struggle)
		if hit.Parent.IsEnemy.Value == false and not hitdb then
			hitdb = true
			hit.Parent.HumanoidRootPart.CFrame = script.Parent.Parent.Parent.Player.CFrame
			hit.Parent.Stunned.Value = true
			hit.Parent.HumanoidRootPart.Anchored = true
			attackAnim:Play()
			struggleAnim:Play()
			print('hit Player')
			task.wait(10)
			hitdb = false
		end
	end
end)

the animation for the player works, but the model animation doesnt

you need to unanchor the model i think cuz when dummy is anchored it isn’t animated at all

1 Like

no error messages? just doesnt animate? If so then id agree with the post above and check if parts are anchored. If that doesnt work then reopen the animation in the animation editor and see if it works with the current rigging of the model. If it doesnt work the only way i know how to fix that is to reanimate everything. However, still possible it could be something else.

1 Like

i honestly didnt think this would work yet it did, thanks lol