I have a script, when you press Button1Down it plays the animation, that works, I copied that animation, and changed Button1Down to Button2Down, but the Button2Down in the second script doesn't work! Why not? Here is the script
script.Parent.Equipped:connect(function(mouse) mouse.Button2Down:connect(function() local animation = script.Stab local plyr = script.Parent.Parent.Name local char = workspace:FindFirstChild(plyr) local anim = char.Humanoid:LoadAnimation(animation) anim:Play() end) end)
Please help!!! Thank you!!! P.S there is not ouput
script.Parent.Equipped:connect(function(mouse) mouse.MouseButton2Down:connect(function() -- try using MouseButton local animation = script.Stab local plyr = script.Parent.Parent.Name local char = workspace:FindFirstChild(plyr) local anim = char.Humanoid:LoadAnimation(animation) anim:Play() end) end)