So my current issue is the combo is giving me an extra attack even though the max combo is 5,
local function PlayAnimations(hum, count)
local currentAnimation = count
local currentAnim = WeaponAnimations.DefaultLSAnims.Combat["Swing"..currentAnimation]
local animation = hum.Animator:LoadAnimation(currentAnim)
animation:Play()
end``` Animation code
function module.ChangeCombo(char)
local combo = char:GetAttribute("Combo")
if lastSwing[char] then
local passedTime = tick() - lastSwing[char]
if passedTime <= 2 then
if combo >= MaxCombo then
char:SetAttribute("Combo",1)
else
char:SetAttribute("Combo", combo + 1)
end
else
char:SetAttribute("Combo",1)
end
end
print("Combo / "..combo)
lastSwing[char] = tick()
end```
** You are now Level 1! **