#Expected identifier when parsing expression, got ‘=‘

1 messages · Page 1 of 1 (latest)

stray fox
#
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
#

why

#

its on this line
lastSwing(chr) = os.clock()

#

Expected identifier when parsing expression, got ‘=‘

#

oka nvm

#

i realize lastSwing[chr]