How to make a knockback?

how to make knockback?
yes you i know you could do it in client cuz more smooth, i did, but.
what is happen, does work?
not that much, for what im looking, is not enough, yea it can create a “bodyvelocity” object but the thing that keep my head scratching is that i dont know how to check on server if the object exist and the propities are good, cuz im scared to copy and paste what i made on the client and pasted on server and make a double “bodyvelocity” can someone please give a example? or explain me how to do it?

and if you asking why i need to make checks on the server, cuz i have a ragdoll system, yea is a combat system, and when you try to put knockback with ragdoll enabled, nothing happen, you just get ragdoll without flaying away.

Try :ApplyImpulse on the HumanoidRootPart

why? can you please explain me for me?

ApplyImpulse is just something that lets you push a part like

Part:ApplyImpulse(Vector3.one) Or something

yeah i know, but can you used on client and server?

‭‭‭‭‭‭‭‭‭‭‭‭‭‭‭‭‭‭‭‭‭‭‭‭‭‭‭Yes

1 Like

didnt work, the knockback doesnt go throw the ragdoll

and im making the knockback fully on client

i think Knockback for dead character must be server side

The character is not dead at all

You could use linear velocity(which is what I do) or assembly linearvelocity

1 Like

You can apply force to the character, or you can try to tween position.
Id recommend adding force like :ApplyImpulse

But the thing is where?, client side or server side? Or in between

How i reply before with @TheLastHeroGodd where i put it?

I personally do it on server but if you’re more for being smooth then you can do it on client

I mean i did try out server before, works indeed, but im looking better and smooth, but just idk, i understand kinda why is that, but i dont know whats is the sulution.

And if you asking what’s it, is that yeah the knockback work rn but when i punch an attack that enables ragdoll to the victim, doesnt have any knockback, and the victim just get ragdoll and fall to the ground. I could share the script or a video but i cant, cuz im in my school and im a little limited.

Do you use a module for ragdoll? If so try checking if it interferes with the humanoidrootpart (or whatever body part you’re using for ragdoll) and if it uses any forces to move the character

Mmmhhh, ok yeah, i used a module, i take out from a video tutorial, a very good one about how to make a ragdoll better and explain how its works.

I think maybe could see if mess around into rootpart, but ofc a little later cuz im in class, so yeah, you know.

1 Like