Motor6D tool animation doesn't work in game

I’m trying to get this animation to work:

but when I play I get this instead:
image

This is the tool:
image
The script inside it is this:

local Tool = script.Parent
local MotorCheck = script.MotorCheck
local Motor6D = script.Motor6D
local anim2 = script.Animation


Tool.Equipped:Connect(function()

    Motor6D.Part0 = Tool.Parent:WaitForChild("Right Arm")
    Motor6D.Part1 = Tool:WaitForChild("Handle")
    AnimationTrack = Tool.Parent.Humanoid:LoadAnimation(anim2)
    AnimationTrack.Priority = Enum.AnimationPriority["Action"]


    if MotorCheck == true then
        Motor6D.Part0 = Tool.Parent:WaitForChild("Right Arm")
        Motor6D.Part1 = Tool:WaitForChild("Handle")
    end

    AnimationTrack:Play()

    MotorCheck = true
end)

Tool.Unequipped:Connect(function()
    Motor6D.Part1 = nil
    Motor6D.Part0 = nil
    AnimationTrack:Stop()

end)

I got no clue why this doesn’t work, C1 and C0 are the same as the one used in the dummy, even with RequiresHandle turned off it still doesn’t work. I tried making a “longer” animation that just rotates the cutlass a bit, but when I tried it in game it was still stuck.
This is what the dummy used has:
image

You should be checking the value of MotorCheck using MotorCheck.Value

Weird, it first prints:
MotorCheck
then true onward

I also tried to outright deleting the part with any MotorCheck, still the same issue

That’s cause you’re setting the entire MotorCheck variable to true instead of just the value

Maybe try rotating the Motor6d using Motor6D.C0 = CFrame.Angles(0,0,0)? It could be rotated the wrong way

Sadly still didn’t work, I also checked the orientation/ position in game and it’s 0

FOUND THE ISSUE, turns out roblox just makes a weld to the right arm whenever you equip the tool, thanks for trying to help me!

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