How to push another player

Hello. I’d like to know how I can push another player?

I want to accomplish something like this in the second 3 of the video:

Someone could help me please :frowning:

1 Like

Video doesn’t load. Try posting again.

2 Likes

I just updated it, now yes, you can already see thank you for letting me know

That just looks like a super fast tween or BodyPosition/BodyVelocity backwards, it’s probably BodyPosition BodyVelocity.

Dude what it’s literally a tutorial video -_-

I don’t quite understand how to use this in code. could you give me an example, please :frowning:

He’s literally showing the code - oh my ok!!
So basically if the hitbox is triggered, he creates a BodyVelocity object in the character’s HumanoidRootPart, sets the target velocity to the player ATTACKING the triggered player’s HumanoidRootPart Vector3 * 40, then subtracts -5 from the players health and adds the velocity to give a sharp push back for 5 seconds and tben removes it.

EDIT: The code example is from line 45 in the video.

You would just have to use a body mover have enough force to move the player. Secondly, parent the body mover with enemy’s root part, use the user’s lookvector to multiply the force.