So what I want to make is that you click on a player and they get pushed back based on there characters rotation, when they are getting pushed they would ragdoll (if they hit a wall for example they would smack into it then fall.) yet i have no idea how to go about doing this. Please help! Thx! :3
Well you’d want to find which player to push using a raycast towards the mouse. Then to move the character you’d use a bodymover to apply some force in the direction you want to push them. As for ragdolls there are a lot of different ways you could approach it and you may want to look through others’ scripts or online to find out how you want to achieve the effect you’re looking for.
Do you mean to say, rather, that you want the character to be pushed based on where they were impacted from?
I wrote an instructional at length here for the same scenario:
https://forum.roblox.com/Forum/ShowPost.aspx?PostID=227996107
In the end I ended up just creating the thing myself, here is the finished product.
What this doesn’t do is Ragdoll. There are a few ways you could go about that.
You can find ragdoll scripts and plugins everywhere, so take the code that makes them tick, and try to bundle it up into a function.
From there it’s your prerogative- you can ragdoll them if their velocity reaches a certain magnitude, or when they come in contact with a part during flight that is not the floor, etc.
-Soybeen +21k Scripter/Scripting Helper posts
yea becuase i already have a script that ragdolls so i think i could do it…