How would i make a "Knockdown" System?

When victim is getting hit by certain attacks, they will get knocked out and start falling until they hit the ground, then stands up after few seconds like shown in this video.

I’m trying to recreate this mechanic in my game, but ends up with terrible result such as:
Character replication is always delayed no matter how low the ping is,
Animations and effects shows up faster than character replication,
High ping players taking ages to stand up

Sorry if my topic is difficult to understand since my English is not good.

1 Like

By using math and manually setting the HumanoidRootPart’s CFrame, you get more control over character movement, than letting roblox physics handle it.

How do i make it replicate to every client if i do so?

Without context of what you meant, to replicate something to every client we’d need to use remote events;
https://create.roblox.com/docs/scripting/networking/remote-events-and-functions#server-to-all-clients
This page will help you understand how to do so if you do not already.
To quickly sum it up:
You’d fire the server which would then fire to all clients :slight_smile:

Thanks for telling me that, but if i do all the movements with remote event, the movement just… looks laggy

1 Like