Temporary Ragdoll?

You did not press the code button.
It’s on the topbar when you write something.

1 Like

This one is pretty epic; you can even preview it in an uncopylocked game

4 Likes

I personally made one of these, however at the moment I don’t have access to my PC, it was also made using OOP.

RAGDOLL.lua (4.5 KB)

Whenever I use this @r0bl0xic808, the humanoid goes launching endlessly in the air. Anyone know how to fix this?

didn’t work lol. character just automatically dies whenever their motor6d’s are changed in any way.

When I did this, the constraints were enabled and then I’d switch every Motor6Ds Part0 to nil (In that order, so the character does not die) though a better way to do this would be to disable the Motor6Ds instead, unchecking the Enabled property.

Another thing you can do is to uncheck the Humanoid’s RequiresNeck property, so it won’t die if the Neck is somehow unattached since that seems to be your problem, my reply was written before RequiresNeck was added as a property.

4 Likes

You’re a life saver. I’ll try to answer back when I test it out myself.

Yep. Works like a charm. Much obliged. You da man :moyai:

Hey, would you mind explaining what you did differently that now made it work? I’m trying to do what @dcampeon said, but I’m having the same problem that you are, and I don’t know what he means when he says:

More specifically, “in that order, so the character does not die.” That seems like the key change you made but I have no idea what he means by “in that order.” Do what? And in what order? Thanks in advanced if you can help me!

I have updated my initial reply, check it out!

Thank you for your reply! So,

Are you talking about the BallSocketConstraint(s) that I would have to create? If so, I am assuming that you would create the BallSocketConstraints when a character is added and default them to disabled, and then enable them when you want to ragdoll, as well as disable the Motor6D’s. What I’m doing is creating the BallSocketConstraints when a certain event happens, which makes them automatically enabled. Is there any difference between the two methods? This should mean that how I’m doing it should work, as long as I am disabling the Motor6D’s at the same time, correct?

Yes and yes, and there shouldn’t be any difference though I would create them once and keep them disabled until needed.

1 Like

Uhhh…Almost there? Take a look

https://gyazo.com/649abb093443d99db6e08fd496c952dc

Code:
https://hastebin.com/ewapozoloq.lua

Change the State from FallingDown to Physics so it doesn’t automatically get set back to another one.

Edit: Don’t disable the HumanoidRootPart’s Motor6D or add constraints to it, leave that untouched otherwise it will throw weird results.

Made those changes, now the character stands upright and can still jump and walk around. I want to make it so that they fall on the floor and are unable to move until the duration is up. Also, the limbs or anywhere I place the ball sockets make limbs flail around a lot, more than I would prefer. Any idea how to fix these problems?

Never mind, I figured out why this happened. Altering the HumanoidRootPart by disabling its motor and adding a constraint are perfectly fine. What I did was fire a remote on the client side that a local script in the StarterPlayerScripts would pick up and change the humanoid state. Fixed everything. :ok_hand:

1 Like

Kind of sad to see that this issue hasn’t been solved yet.
Here’s a place that I’m not going to need anymore that has a temporary ragdoll and a little unfinished wipeout system:
Ragdoll Test + Wipeouts.rbxl (29.9 KB)
To turn the ragdoll on, move the “Ragdoll” bool value inside of the effects folder in your character. (can be done on both the client and the server, compatibility not tested)

12 Likes

Awesome job! I had troubles before because the last ragdoll stuff I had wouldn’t work with no player collision but luckily your ragdoll works so thank you a lot!

In a script you gotta do

char.Humanoid.PlatformStand = true

That will prevent the character from standing

(Ofcourse when you want to undo the ragdoll you should set it to false again)

yeah but platformstand has a glitch that if your character is facing the sky it might fling itself but not far away
but if theres no solution id recommend using that