What's the best way to create a lunge effect?

As of right now, I’m creating a sword from scratch and currently working on the lunge function. I’ve already finished it but it just gives the player an speed boost when lunging, and I like to do more than just that. So the question that I’m asking is how I can launch or lunge a player’s character in the direction they’re facing, like how Polyhex (or Wheatlies if he coded it) did with sword lunging in their game (Super Doomspire). Only problem is that I have no idea how to recreate that.

I got feeling that this is gonna involve BodyForces.

(This is my first time posting on here, so I have no idea if this isn’t in the correct category. Also I have trouble with using words to express what I need, so please bear with me!)

2 Likes

One method of doing this would be BodyPosition. Use lookvector on the players HumanoidRootPart, then cframe it your desired amount of studs forward, then once the position is reached, cframe it the same amount of studs backwards. The same could be achieved with tweenservice and you may possibly want to set the reverse property of the tween to true. When animating, make sure not to move the character forward as the humanoidrootpart during the animation stays in the same spot.

1 Like

I think using a BodyVelocity would probably complicate things less than using a BodyPosition since you wouldn’t need to calculate any distance in advance. It also won’t produce entirely linear movement which might not feel right with a sword lunge

1 Like