How would I go about making a knockdown system?

Hello Developers,

I was recently working on a small project that I wanted to have a nice little revive/knockdown system for. I don’t really have any idea on how I’d do this, so I really need some help on it.

Please keep in mind: I’m not asking for a script, just a little code snippet to help make the code.

Any Help is Appreciated,
OceanTubez

3 Likes

So for a knock down you will need the following:
a mechanism to ‘mark’ the target and ‘hit’ it.
As part of the new player added add a local script to ‘handle’ the hit.
In that you need to:
stop the player from moving
play an animation that shows the player falling down.
wait a few seconds.
play the default idle animation.
release the players control freeze.
exit the script.
on the players next move he will be back to normal.

hope this helps.