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

Load animation requires the Humanoid object to be a desecendant of the game object?

Asked by 6 years ago

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)

0
To get a random entry of the table you would do: local MathAttack = AttackT[math.random(1, #AttackT] turtleman4real 1 — 6y
0
just to fix that above code, it's Table[math.random(#Table)] RubenKan 3615 — 6y
0
THANK YOU!!!!!!!!! Mr_MilkysButler 47 — 6y

Answer this question