I'm making a sword that has 3 different animations as an attack, I've tried A LOT of things and I can't figure out how to make Animation 1 play, then animation 2 play if you clicked again quickly, then animation 3 if you clicked quickly again. and if you didn't it would just reset back to animation 1. Could anyone please help me? If so, that would be amazing. Thanks!
A small bit of the code below, lots of variables.
SaberActive = false Blocking = false form = 1 CanAttack = true AttackTimer = tick() mouse.Button1Down:connect(function() if SaberActive == false and ignite == true and Blocking == false then if form == 1 and ignite == true then if tick() - AttackTimer < 1 and SaberActive == false and CanAttack == true then CanAttack = false AttackTimer = tick() Attack1:Play() wait(0.5) CanAttack = true elseif tick() - AttackTimer > 1 and CanAttack == true then CanAttack = false AttackTimer = tick() Attack2:Play() wait(0.5) CanAttack = true end end end end)
Attack1 and Attack2 are just different animations. If I can't get these to work what hope do I have for 3?