Not looking for scripts or anything just things I could use to make a script that can slash a swor d more then 1 time with different animations. I have NO idea on how to do this and my script planning is that it checks a value inside the tool to see what type of weapon it is like : Light, heavy, spears, stuff like that!
Have an attribute of the sword type.
Detect when the Player sends input, such as a mouse click.
Maybe something like this would work for the two different slashes?
local function Slash(Anim) local Animation = Humanoid.Animator:LoadAnimation(Anim) Anim:Play() -- Code for slash damage, etc here end local Mouse = game.Players.LocalPlayer:GetMouse() Mouse.Button1Down:Connect(function() Slash(Anim1) Slash(Anim2) end)
And I would lay out the script with a script inside of the tool, 2 or more animations inside and I should be alright. Thanks for your help!