I am trying to make a click to play animation script, but it wont work! Does it not work on studio, or did I write something wrong?
script.Parent.Equipped:Connect(function(Mouse)
Mouse.Buttom1Down:Connect(function()
local Animation = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(script.Parent.Animation)
Animation:Play()
end
end)
Please help me if you know. Thanks alot :)

4 comments
Equipped actually does have the mouse as a parameter.
oops sorry
Im so stupid. I shoul of read the wiki
AAAAAAAGGGGGGGGGGGGGGGGGGHHHHHHHHHHHHHHHHHhhh