When I equip a tool with a holding animation, and equip a different tool from that tool, it doesn’t stop playing the holding animation.
Here is the code I am using, and screen shots showing what happen. (Code in a local script inside the tool.)
script.Parent.Equipped:Connect(function()
EquipArmsEvent:Fire()
Tool = script.Parent
animScript = Tool.Parent:WaitForChild("Animate")
animScript:WaitForChild("toolnone"):WaitForChild("ToolNoneAnim")
animScript.toolnone.ToolNoneAnim.AnimationId = "https://www.roblox.com/asset/?id=16155606606"
end)
script.Parent.Unequipped:Connect(function()
UnequipArmsEvent:Fire()
animScript:WaitForChild("toolnone"):WaitForChild("ToolNoneAnim")
animScript.toolnone.ToolNoneAnim.AnimationId = "https://www.roblox.com/asset/?id=16155606606"
end)
Equipped Tool 1
Equip Tool 2
What Tool 2 Should Be
When I unequip it, the animation stops, it’s just when I equip another tool while I have a tool equipped already.