Hello, I’m currently working on a combat game and need an R6 ragdoll system. I’ve tried creating many R6 ragdoll modules, but all of them failed or had bugs. I’m looking for a ragdoll module that collides with the world, has no jitter in the limbs, and where limbs don’t collide with each other. Also, the ragdoll should look floppy.
#Ragdoll Module For Combat Game.
1 messages · Page 1 of 1 (latest)
@ornate steppe
local PhysicsService = game:GetService("PhysicsService")
local groupName = "RagdollLimbs"
pcall(function() PhysicsService:RegisterCollisionGroup(groupName) end)
PhysicsService:CollisionGroupSetCollidable(groupName, groupName, false)
local function ragdoll(character)
local humanoid = character:FindFirstChildOfClass("Humanoid")
humanoid.PlatformStand = true
humanoid:ChangeState(Enum.HumanoidStateType.Physics)
for _, v in pairs(character:GetDescendants()) do
if v:IsA("Motor6D") then
local a0, a1 = v.Part0, v.Part1
if a0 and a1 then
local att0 = a0:FindFirstChild(v.Name .. "Attachment") or Instance.new("Attachment", a0)
local att1 = a1:FindFirstChild(v.Name .. "Attachment") or Instance.new("Attachment", a1)
local socket = Instance.new("BallSocketConstraint")
socket.Attachment0 = att0
socket.Attachment1 = att1
socket.UpperAngle = 45
socket.LimitsEnabled = true
socket.TwistLimitsEnabled = true
socket.Parent = v.Parent
v.Enabled = false
a1.CanCollide = true
a1.CollisionGroup = groupName
if a0.Name == "HumanoidRootPart" then
a0.CanCollide = false
end
end
end
end
end
this is a module
Thank you
Alright, thank you
** You are now Level 1! **
did it work?
kk
if it worked out can u join my port and just write a review
u can leave right after
It works flawlessly, and yh, I can
k ty
k ty @ornate steppe
u can leave if u want
the server
np
** You are now Level 1! **
and enjoy the ragdoll