#Ragdoll Module For Combat Game.

1 messages · Page 1 of 1 (latest)

ornate steppe
#

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.

frosty umbra
#

@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

ornate steppe
frosty umbra
#

Np

#

try it out

#

tell me if its works

#

if not

#

i can fix it

ornate steppe
#

Alright, thank you

frosty umbra
#

np

#

@ornate steppe

zenith pecanBOT
#

studio** You are now Level 1! **studio

frosty umbra
#

did it work?

ornate steppe
#

Testing it rn

#

I’ll lyk once I’m done testing

frosty umbra
#

kk

#

if it worked out can u join my port and just write a review

#

u can leave right after

ornate steppe
frosty umbra
#

k ty @ornate steppe

#

u can leave if u want

#

the server

ornate steppe
#

np

zenith pecanBOT
#

studio** You are now Level 1! **studio

frosty umbra
#

and enjoy the ragdoll