Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

math.random on table error : attempt to get length of upvalue 'dmg' (a boolean value)?

Asked by 8 years ago
local dmg           = {20, 30, 35, 15, 22} 

local damage = dmg[math.random(1, #dmg)]
0
I'm not getting any problems with it. Is dmg being changed at all later in the script? M39a9am3R 3210 — 8y
1
Im not getting any errors. Perhaps post the whole script? Kyokamii 133 — 8y

Answer this question