addComas function:
local function addComas(str)
local x = tostring(str)
return x % 3 == 0 and str:reverse():gsub("(%d%d%d)", "%1,"):reverse():sub(2) or str:reverse():gsub("(%d%d%d)", "%1,"):reverse()
end
the part of the script that's making the error?:
TIP:WaitForChild("ItemInfo").Text = addComas(_MOD.MinDamage) .. "-" .. addComas(_MOD.MaxDamage) .. " DMG / CD: " .. addComas(_MOD.Cooldown)
I suck at coding so I have no idea what's going on any help is appreciated thank you!
