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

How to correctly stun a player ?

Asked by 5 years ago

I would like to know how to stun a player. Not just using animation + putting walkspeed to 0, what i want is that the player's character can "fall" by himself... For example, he is at the border of a mountain, then he is stuned and he fall down, not because he wanted to , but because he was "forced" to fall

0
Not a request site User#17685 0 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago

You can change the humanoid's state using this function. Here is a list of all possible states. The best one in this case would be Ragdoll.

Example:

local humanoid

humanoid:ChangeState(Enum.HumanoidStateType.Ragdoll)
Ad

Answer this question