I am trying to make an animation attack play after using another animation attack using Button1Down. Similar to Roblox's '"ClassicSword", how it has a lunge attack after it's slash from double clicking. My code isn't making the second animation active after using the first animation, May I have some help if fixing my loop please?
local animation = Instance.new("Animation") animation.AnimationId = "rbxassetid://188046705" game.Players.LocalPlayer:GetMouse''.Button1Down:connect(function() local character = Player.Character animTrack = character:WaitForChild("Humanoid"):LoadAnimation(animation) animTrack:Play() end) if animation.AnimationId == nil then local animation2 = Instance.new("Animation") animation2.AnimationId = "rbxassetid://188253235" game.Players.LocalPlayer:GetMouse''.Button1Down:connect(function() local character = Player.Character animTrack = character:WaitForChild("Humanoid"):LoadAnimation(animation2) animTrack:Play() end) end