Weird replication stutters

I am using LinearVelocity set to line mode in order to achieve knockback but I don’t know why it’s stuttering.

Here’s what I mean:

If anyone knows what’s going on please do let me know. My performance stats aren’t doing bad and the server is not lagging in any way.

I increased the LinearVelocity duration to around 2 seconds and the stutters still occur. Does this have something to do with LinearVelocity itself?

That’s the client, it is a few milliseconds behind and everything that happens on the client, happens with delay on the server, therefore you need to use the linear velocity on the server

Linear velocity is made on the server, parented on the server, etc… All knockback is server sided. So I don’t see why this is occuring.

Must be the network ownership then, it doesn’t make sense otherwise

That’s what I guessed, it’s smooth on the client but crappy on the server which results with every other client seeing it as crappy. Don’t know why though, it should replicate smoothly.

did you ever manage to fix this issue? im struggling with it right now.

No, I just learned to live with it. :sad:

I ended up using bodyVelocity and that doesnt stutter at all man

1 Like

Sorry about the late post, but I have ran into this error just now, and im using linearvelocity and my knockback is clean. Instead of creating and destroying linearvelocities super often, just create one at the start of the script, and just edit the planevelocitie when u need to apply a velocity on the player. When you dont need the velocity, just set maxforce to 0 and planevelocity to 0. (note you MUST set maxforce to 0 or you will get stuck in one place).

You can find the solution here