Animation wont stop after unequipping the tool

Hey !

Today, I made some animations with the roblox animation tool. After making different things, I tried to make a tool with a loop (that stay in position with both arms when you equip it). It works ! But when I unequip the tool, my arms are stuck in place. I tried many different things, nothing worked.

When equipped :

image

When unequipped :

image

Here is the script :

local player = game:GetService("Players").LocalPlayer
local char = player.Character or player.CharacterAdded:Wait()
local h = char:WaitForChild("Humanoid")
local anim = h:LoadAnimation(script.Parent:WaitForChild("Animation"))

local tool = script.Parent

tool.Equipped:Connect(function()
	anim:Play()
end)

tool.Unequiped:Connect(function()
	anim:Stop()
end)

Also, here is the full configuration of the tool folder ;
image

and what properties I chose in animation ;

Could you help me to fix that ?

1 Like

Oops! Typo, it’s .Unequipped. 30 chars

5 Likes

Sometimes you eye won’t catch details. Thank you a lot !