How Do I Knock A Character Back?

Hello, I want to know how I can knock a character back.
Any time I used body force or velocity it knocks them back 20% of the time for no reason and its extremely annoying.
How do I knock a character back effectively?

local bodyForce = Instance.new("BodyForce")
bodyForce.Force = CFrame.new(handle.Position, root.Position).LookVector * 9999
bodyForce.Parent = root
4 Likes

Could you provide a little more context/clarification as to what you’re trying to accomplish and what the problems are? I’m a little confused by “Any time I used body force or velocity it knocks them back 20% of the time for no reason.” It would help to know when that problem happens & what this knockback script is for.

3 Likes

try making the character stunned when they’re pushed back

basically change the platformstand

2 Likes

Adding on to this, I’m pretty sure forces only work if theyre jumping/sitting/platformstanding. While testing your code, try jumping, and seeing if it works 100% of the time. Not sure what method you’re usinig, but if theyre just standing, it’s going to be a real gamble.

1 Like
1 Like