Best way of moving a players body instance, for combat purposes

I’ve been making a Zombie/Defense game recently. However, I’ve made many combat scripts, I can’t seem to match the way the player’s character moves when an attack is launched In other games, For example: BlackMagic 2.

If anyone has any good ideas on how I would effectively move a player’s character as if they were being propelled, Please let me know!

You can use :ApplyImpulse or LinearVelocity to propel a character effectively.

I’ve used LinearVelocity, It seems to scrape against the ground when I do so. What does ApplyImpulse do?

:ApplyImpulse will as the name suggests, apply an impulse based on a Vector3.
https://developer.roblox.com/en-us/api-reference/function/BasePart/ApplyImpulse

Do you know if this would also scrape against the ground,“Which causes the character to not move at the same speed all the time”

You can just add a little up force (which will counteract the gravity) so that they glide along the ground.

Another thing you can do is just tween the position of the character but it would be a bit finnicky.

1 Like

Okay, I see. I’ve been doing that currently. But do you know how I would for instance keep a player connected to another player with out actually connecting them?

Thanks, Katrist. I’ll just keep testing out what looks the best since it doesn’t seem that there is a better way.