Hi, everyone.
I have made a weapon and I have animated it successfully. (So don’t link me a tutorial on how to animate tools)
But once I have exported it into a tool, the body parts animate successfully but the weapon does not.
local tool = script.Parent
tool.Equipped:Connect(function()
rightArm = script.Parent.Parent["Right Arm"]
rightArm:WaitForChild("RightGrip"):Destroy()
local motor = Instance.new("Motor6D", rightArm)
motor.Name = "HandleMotor6D"
motor.Part0 = rightArm
motor.Part1 = tool.Handle
end)
tool.Unequipped:Connect(function()
local motor = rightArm:FindFirstChild("HandleMotor6D")
if motor then
motor:Destroy()
end
end)
That would work, however if that player will never drop it or anything I suggest you create the motor and everything once. It’s just unnecessary imo to keep doing it and can lead to errors if right grip isnt found or player loses arm etc.
In my tools I just have the Motor6D inside the tool itself and just change the Part0 to the Arm on equipped.