I do it this way but I guess there's a better way of doing this so it will turn out smoother.

script.Parent.Equipped:Connect(function(mouse)
	mouse.Button1Down:Connect(function()
		local slash1 = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(script.Slash1)
		slash1:Play()
	end)	
end)

1 comment

0

Is that a local script?