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)
COMMUNITY QUESTION
Load animation requires the Humanoid object to be a desecendant of the game object?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

3 comments
To get a random entry of the table you would do: local MathAttack = AttackT[math.random(1, #AttackT]
just to fix that above code, it's Table[math.random(#Table)]
THANK YOU!!!!!!!!!