Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Ok so i need a ragdoll script (by pressing "R" prefererably?

Asked by 5 years ago

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!

0
do you even script brah? 123nabilben123 499 — 5y
0
nah brah EllaTheFloofyFox 106 — 5y

3 answers

Log in to vote
1
Answered by 4 years ago

Dangit, I'm late to the party!

https://devforum.roblox.com/t/humanoid-breakjointsondeath/252053/13

01local died
02died = 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 part0 = desc.Part0
09            local joint_name = desc.Name
10            local attachment0 = desc.Parent:FindFirstChild(joint_name.."Attachment") or desc.Parent:FindFirstChild(joint_name.."RigAttachment")
11            local attachment1 = part0:FindFirstChild(joint_name.."Attachment") or part0:FindFirstChild(joint_name.."RigAttachment")
12            if attachment0 and attachment1 then
13                socket.Attachment0, socket.Attachment1 = attachment0, attachment1
14                socket.Parent = desc.Parent
15                desc:Destroy()
16            end
17        end
18    end
19end)
Ad
Log in to vote
2
Answered by 5 years ago

Ya you just need to watch YouTube tutorials.

Log in to vote
0
Answered by
Kaput_0 44
5 years ago

https://idownvotedbecau.se/noattempt/

0
coul'ent downvote but if i could this would be why Kaput_0 44 — 5y
0
coul'ent downvote but if i could i would downvote this for not being an actual answer User#30567 0 — 4y

Answer this question