ok so my animation is not playing when i equip a tool and i click, i want a animation to play, yet it isnt, any reason why?
local Players = game:GetService("Players")
script.Parent.Equipped:Connect(function(mouse)
mouse.Button1Down:Connect(function()
local Players = game:GetService("Players")
local animation = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(script.Parent.Animation)
wait(1.2)
animation:Play()
end)
end)

1 comment
thank you to those for your help everyone i finally found out the reason why it wasnt working, i was in r15, the animation was for only r6, thank you to those who helped!