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

How to make humanoids that get pushed back when you jump on them?

Asked by 10 years ago

I have a humanoid, and I want it so that when it is jumped on, it is pushed back a bit in the direction my character was facing. How would I do it?

1 answer

Log in to vote
0
Answered by
TheMyrco 375 Moderation Voter
10 years ago

You can use the Touched event in order to run a piece of code when something is touched. Then you can set the velocity of the Torso to the negative of the lookVector of your Torso times x. x represents the force.

0
Thank you for the advice on how to go about coding it. jBuildz17 20 — 10y
Ad

Answer this question