module.ChangeCombo = function(chr)
local combo = chr:GetAttribute("Combo")
if lastSwing(chr) then
local passedTime = os.clock() - lastSwing(chr)
if passedTime <= 1 then
if combo >= MaxCombo then
chr:SetAttribute("Combo", 1)
else
chr:SetAttribute("Combo", combo + 1)
end
if passedTime >= 1 then
chr:SetAttribute("Combo", 1)
end
end
end
lastSwing(chr) = os.clock()
end
#Expected identifier when parsing expression, got ‘=‘
1 messages · Page 1 of 1 (latest)