local dmg = {20, 30, 35, 15, 22}
local damage = dmg[math.random(1, #dmg)]
COMMUNITY QUESTION
math.random on table error : attempt to get length of upvalue 'dmg' (a boolean value)?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
I'm not getting any problems with it. Is dmg being changed at all later in the script?
Im not getting any errors. Perhaps post the whole script?