im sending numbers i get from a module script to a normal script via a local script sending it. I get this: ServerScriptService.SwordHitScript:3: bad argument #1 to 'random' (number expected, got Object) on this: local Damage = math.random(min, max) the local script proves it wrong with a print that prints both the min and the max
print(min)
print(max)
and it prints 1 and 2. those are numbers right? last I recalled a number isn't a object oh and heres min and max in the module script
local Module = {
--] Basic Configuration
["MaxDamage"] = 2,
["MinDamage"] = 1,
["Cooldown"] = 1,
["Cost"] = 0,
--] Advanced
["HumanoidToKill"] = "Enemy"
}
return Module
and in the local script heres the define of min and max
local min = _M.MinDamage
local max = _M.MaxDamage
and here is the module
local _M = require(script.Parent.Settings)
please help someone

1 comment
I'm pretty sure when it sats got object it means it got the module script and not whats inside of it.