Animating an object seperate to the character

I’m unsure how to animate an object seperate to the character.
Here’s an example:
https://gyazo.com/38f5b0ab2d46d8fbff483f8d83ee384f
To reiterate on what i’m trying to achieve, the katana moves separately from the character.

1 Like

These steps might help:

  1. Create a tool with the parts of the object inside them. (make sure the tool has RequiresHandle off)
  2. Weld the parts in the tool to the part you want to animate with
  3. Move the tool inside the animation dummy
  4. Create a Motor6D inside the Right Arm of the dummy
  5. Set the Motor6D’s Part0 to the arm and the Part1 to the part inside the tool
  6. Create the animation(s) you need
  7. Move the tool into the StarterPack
    8: Create a Script inside the Tool with the following code:
local Tool = script.Parent
local Part = Tool.Object
local Animation1 = Instance.new("Animation")
Animation1.AnimationId = "rbxassetid://" -- make this your animation ID

Tool.Equipped:Connect(function()
    local Character = Tool.Parent
    local Humanoid = Character.Humanoid
    local Animator = Humanoid.Animator
    local Arm = Character["Right Arm"]

    local M6D = Instance.new("Motor6D")
    M6D.Part0 = Arm
    M6D.Part1 = Part

    local PlayAnimation1 = Animatior:LoadAnimation(Animation1)
    PlayAnimation1:Play()

end)


1 Like

When I tried to animate I couldnt move the part?

Is the part anchored? Most times Motor6Ds don’t move is because they’re anchored.

1 Like

Nevermind, I solved that issue. The issue now is when I equip the tool, this happens. The object just falls through the floor when equipped.
https://gyazo.com/68c2343fd3b235b6e3a5f439450e70ab
Here are the properties of the object:
image

Nevermind, I found the solution, the motor6D wasnt being created. Thank you for your help I’ve been struggling on this for hours!

1 Like