Ragdoll Wierd Behavier

I am making a ragdoll script for r15, but the problem is collisions, when i have platform stand on the hands and legs go through the terrain, and when I dont use it, the legs, hands and head goes inside the torso.

I have tried setting Humanoid States to different choices like physics, and ragdoll. I also have tried with both platformstand on and off. I have been trying to solve this problem for over 3 days now.

2 Likes

Set the hands and legs to CanCollide true.

I have tried that but it wouldn’t work either, that was the first thing that came to my mind when I thought of collisions not working.

As far as I know, this was caused by not setting Humanoid States to Ragdoll and not disabling GettingUp State.

  • Change State to Ragdoll: to make character into… ragdoll and makes character parts have collision - instead of just Torso, using PlatformStand doesn’t do that.
  • Disable GettingUp State: to prevent player from getting up when in ragdoll state.

Just run this code in Client-side and make sure PlatformStand is false:

script.Parent.Humanoid:ChangeState(Enum.HumanoidStateType.Ragdoll) 
script.Parent.Humanoid:SetStateEnabled(Enum.HumanoidStateType.GettingUp,false)
1 Like

That works when ragdolling but after a second it goes through the floor again, but it sounds like a start to the solution mate :smiley:

What about it (setting CanCollide to true) doesn’t work exactly?

that wouldnt work because roblox has this thing where it sets it back to off every frame so its impossible.

Seems like you enabled PlatformStand somewhere in script. If you didn’t, do you mind recording what happens? So I can find the solution easier.

Yes I already disabled it, but the problem is still happening.

Can you check Humanoid Sit and PlatformStand property during Ragdoll state?

You were right setting it to platformstand off fixes it, thanks so much sir, turns out i forgot to commit the script in the draft windows after removing the line that changes the platform stand, but i have one more problem and that is, lets say I dont want collisions between player, and make a script that does that, but when I do the player curls in a ball like the legs go inside the torso and hands stand rotating like a washing machine, but when i have that script disabled it works like a charm for some reason.

I guess you need to make 2 collision groups, one is for player who is in ragdoll state and one is for player who isn’t. Whenever any players goes ragdoll, change their character collision to Ragdoll group, when they stand up or anything, change their character collision back to normal. Note that this still have collision between player and ragdoll, but can solve the problem quite a bit.

1 Like

Thanks that might work :smiley: I am pretty sure that will work, I also thought of that but I didnt think it would work XD THANKS SO MUCH

2 Likes

Then you can use Runservice.Stepped which fires every frame

That was… two years ago… hope you realized that…