Noted :
- All of my use is from server - side
- I will respond maybe in the next 12 hour because my times zones right now are really late, have to go to bed
I have ragdoll system that i created, the way it work is (R6)
there are 5 part collision on each limb
also this is at StarterCharacter that is stored at StarterPlayer
The script i have is at boolValue which is at StarterCharcterScript
The script:
local isRagdoll_Value = script.Parent
local get_character = game.Players:GetPlayerFromCharacter(script.Parent.Parent)
repeat task.wait() until get_character
local player = get_character
local character = player.Character
local Torso = character.Torso
print("found torso")
local Collision = {}
local Motor6DTorso = {}
for i, v in pairs(character:GetDescendants()) do --Collect the collection of part in body part
if v.Name == "Collision" then
table.insert(Collision, v)
end
end
for num, object in pairs(character:GetDescendants()) do --Get the motor6D
if object:IsA("Motor6D") then
table.insert(Motor6DTorso, object)
end
end
function isTrue()
for val, part in pairs(Collision) do
part.CanCollide = true
end
for i, v in pairs(Motor6DTorso) do
v.Enabled = false
end
character.Humanoid.AutoRotate = false
character.Humanoid.PlatformStand = true
end
function isFalse()
for algebra, parts in pairs(Collision) do
parts.CanCollide = false
end
for i, v in pairs(Motor6DTorso) do
v.Enabled = true
end
character.Humanoid.AutoRotate = true
character.Humanoid.PlatformStand = false
end
isRagdoll_Value:GetPropertyChangedSignal("Value"):Connect(function()
if isRagdoll_Value.Value == true then
isTrue()
elseif isRagdoll_Value.Value == false then
isFalse()
end
end)
print(Motor6DTorso)
print(Collision)
I have no problem with script just how the character Ragdoll, remember both are from server side
How i made the ragdoll
- I make all the collision part .CanCollide = true
- I disable all motor6D in Torso
- I disable AutoRotate and enabled PlatformStand on Humanoid
Result:
Manual
Using The script (Enabled by ticking enabled on IsRagdoll Value)
i have no problem when player get up, this is my first time trying to make ragdoll so don’t judge me