Hello, im making a tool and i make a animation on it. when i test my tool it dosen't play and the output tells me: 17:16:59.005 - Play is not a valid member of Animation 17:16:59.009 - Stack Begin 17:16:59.014 - Script 'Workspace.TheEdyGamerTroll23.Chip.LocalScript', Line 12 17:16:59.018 - Stack End
Here's my script
Tool = script.Parent
local player = game.Players.LocalPlayer
repeat wait() until player.Character ~= nil
local hum = player.Character:WaitForChild("Humanoid")
local animation = Tool["insert-2"]
local animation2 = Tool["insert-1"]
local AnimTrack = hum:LoadAnimation(script.Parent["insert-1"])
Tool.Activated:connect(function(mouse)
animation2:Play()
end)
Tool.Unequipped:connect(function()
animation2:Stop()
end)

2 comments
also the same with Stop()
The Activated event doesn’t have a mouse parameter.