o1-preview-2024-09-12· OpenAI
WildChat-4.8M (AI2)
can you make a r15 ragdoll script? dont add any comments to the script or about the script
- User
can you make a r15 ragdoll script? dont add any comments to the script or about the script
- Assistant
local character = script.Parent local humanoid = character:FindFirstChildOfClass("Humanoid") if humanoid then humanoid:ChangeState(Enum.HumanoidStateType.Physics) end for _, descendant in pairs(character:GetDescendants()) do if descendant:IsA("Motor6D") then local attachment0 = Instance.new("Attachment", descendant.Part0) local attachment1 = Instance.new("Attachment", descendant.Part1) attachment0.CFrame = descendant.C0 attachment1.CFrame = descendant.C1 local constraint = Instance.new("BallSocketConstraint") constraint.Attachment0 = attachment0 constraint.Attachment1 = attachment1 constraint.Parent = descendant.Part0 descendant.Enabled = false end end