I am trying to make so an npc has a animation with a tool
However, it is playing the animation, but the tool is not following the arms
If anyone knows a fix, please help me. (ps I used tool grip editor)
Here is the tool’s code
local tool = script.Parent
local Character,Humanoid
local Idle
local Fire
local Reload
tool.Equipped:Connect(function()
Character = tool.Parent
Humanoid = Character:FindFirstChildOfClass("Humanoid")
Idle = Humanoid:WaitForChild("Animator"):LoadAnimation(script.IdleAnim)
Idle.Priority = Enum.AnimationPriority.Movement
Idle:Play()
end)
tool.Unequipped:Connect(function()
if Idle then
Idle:Stop()
end
end)