OK so i don't know how to make a good script at all and i need a press R to go ragdoll script ive tried other peoples scripts and they don't work is there any easy script i can have or you tell me how to make it? thanks for reading answers are appreciated!
Dangit, I'm late to the party!
https://devforum.roblox.com/t/humanoid-breakjointsondeath/252053/13
01 | local died |
02 | died = character.Humanoid.Died:Connect( function () |
03 | local d = character:GetDescendants() |
04 | for i = 1 ,#d do |
05 | local desc = d [ i ] |
06 | if desc:IsA( "Motor6D" ) then |
07 | local socket = Instance.new( "BallSocketConstraint" ) |
08 | local part 0 = desc.Part 0 |
09 | local joint_name = desc.Name |
10 | local attachment 0 = desc.Parent:FindFirstChild(joint_name.. "Attachment" ) or desc.Parent:FindFirstChild(joint_name.. "RigAttachment" ) |
11 | local attachment 1 = part 0 :FindFirstChild(joint_name.. "Attachment" ) or part 0 :FindFirstChild(joint_name.. "RigAttachment" ) |
12 | if attachment 0 and attachment 1 then |
13 | socket.Attachment 0 , socket.Attachment 1 = attachment 0 , attachment 1 |
14 | socket.Parent = desc.Parent |
15 | desc:Destroy() |
16 | end |
17 | end |
18 | end |
19 | end ) |
https://idownvotedbecau.se/noattempt/