Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How would I make something with a humanoid play an animation when there attacked?

I made a combat script that damages something with a humanoid but I want it to look more detailed when there attacked. How would I make the enemy that is attacked play an animation?

3 comments

0

do you got any scripting knowledge??

0

Yeah :/

0

Could you like show the Combat script? cus it is rlly hard to help if we cant know what your combat script is like.

1 answer

We are not going to do all the work for you. If you have a combat script, then edit it. A) Have the damaged humanoid tagged, then have another scripted playing the animation when so B) Connect it with your script. So lets say in your "combat script" Player A hits player B, and B takes damage. After or before the damage being dealt, have the animation bonded to the damaged player.

3 comments

0

Im gonna be honest.. That was really useless. I only need to know how to play the animations

0

Then look at the wiki.

0

I did. Thats why I'm here,I even went to uristmcsparks animation controller test game. The npc only plays animations when it doesn't have a humanoid for some reason.

This discussion is preserved as it was. New answers, comments, and votes are closed.