How to reduce delay in knockback (like tsb)

I’m making this knockback system, and I noticed that there is a quite noticeable delay between when the knockback is initiated and when it actually is shown on the client’s screen.

Right now, my method is:

  1. Player 1 does a knockback on player 2
  2. Server fires player 2 client
  3. On player 2’s local script, perform the knockback

This is what it looks like:

I’ve read countless posts on this and I can’t find a solution. I’ve tried setting the network ownership to player 1 and performing the knockback on player 1’s client, but it also causes a delay.

I came up with one idea, but I don’t know if it would work or not. So, I would fire all clients and create a dummy clone of the player being affected by the knockback and perform the knockback on that dummy. The only problem with that is that the trajectories might be different for the dummy and the actual player.

I heard that this knockback delay is unavoidable, but there are ways to reduce it. Does anyone know how games like the strongest battlegrounds reduce their knockback delay?

2 Likes

cant you do the knockback on the server

2 Likes

I also tried doing the knockback (bodyvelocity) on the server, and there is also a noticeable delay.