local dmg 			= {20, 30, 35, 15, 22} 

local damage = dmg[math.random(1, #dmg)]

2 comments

0

I'm not getting any problems with it. Is dmg being changed at all later in the script?

1

Im not getting any errors. Perhaps post the whole script?