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

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

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

✓ Accepted answer

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.

1 comment

0

Thank you for the advice on how to go about coding it.

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