I don't know what that error means but I'm trying to create a math.random function for 2 animations. local AttackT = {Attack1,Attack2} local MathAttack = math.random(AttackT) local AttackR = Hum:Loadanimation(MathAttack)

3 comments

0

To get a random entry of the table you would do: local MathAttack = AttackT[math.random(1, #AttackT]

0

just to fix that above code, it's Table[math.random(#Table)]

0

THANK YOU!!!!!!!!!