#Ragdoll with knockback
1 messages · Page 1 of 1 (latest)
Well for the knockback i'd use HumanoidRootPart:ApplyImpulse.
Docs for it: https://create.roblox.com/docs/reference/engine/classes/BasePart#ApplyImpulse
I didn't find any tutorials but this is the formula I normaly use:
ApplyImpulse(Direction * Mass * KnockbackForce)
Mass would be HumanoidRootPart.AssemblyMass.
And KnockbackForce would just be a Number like 120.
And Direction would be for example the LookVector of the Attacker.
Nvm I just found a pretty good tutorial that should help you:
https://youtu.be/0Dt-Ab8czPw?si=JPIio08V4-CIMy--
It goes over other ways you can move the player as well and how to make a simple ragdoll
Learn Roblox physics scripting with mover constraints like LinearVelocity, AngularVelocity, and AlignPosition. Build a Pet Follow Player system, create ragdoll physics using BallSocketConstraints, and script advanced projectile motion. This episode is packed with lots of valuable knowledge for Roblox developers you don't want to miss out on!
PA...
And it also goes over Projectiles in the last part but if you wanna make a Projectile there are better tutorials for that.