#Problem with ragdoll

1 messages · Page 1 of 1 (latest)

spring mountain
#

Idk why but my script doesnt set platform stand on true every time , this occurs sometimes when the player enters ragdoll while jumping



function Ragdoll.RagdollPlayer(player,char)
    if not player or not char then return end
    
    local hum = char:FindFirstChild("Humanoid")
    local HRP = char:FindFirstChild("HumanoidRootPart")
    local torso = char:FindFirstChild("Torso")

    local weld = Instance.new("WeldConstraint")
    weld.Name = player.Name
    weld.Part0 = torso
    weld.Part1 = HRP
    weld.Parent = HRP
    weld.Enabled = true

    BackpackVisibility:FireClient(player,false)
    
    Ragdoll.TurnColliders(char, true)
    Ragdoll.TurnM6D(char, false)
    
    
    if hum:GetAttribute("InCarry") then
        DownedInCarry:Fire(player)
    end

    local DownedGUI = DownedVFX:Clone()
    DownedGUI.Parent = HRP
    

    for _,m6d in ipairs(char:GetDescendants()) do

        if not m6d:IsA("Motor6D") then continue end

        local att1 = Instance.new("Attachment")
        local att2 = Instance.new("Attachment")

        att1.CFrame = m6d.C0
        att2.CFrame = m6d.C1

        att1.Parent = m6d.Part0
        att2.Parent = m6d.Part1


        local socket = Instance.new("BallSocketConstraint")
        socket.Attachment0 = att1
        socket.Attachment1 = att2
        socket.LimitsEnabled = true
        socket.TwistLimitsEnabled = true
        socket.Parent = m6d.Parent

        table.insert(joints[player.Name], att1)
        table.insert(joints[player.Name], att2)
        table.insert(joints[player.Name], socket)
    end

    Ragdoll.ApplyVFX(char)
    
    hum.PlatformStand = true
    
    Ragdoll.CheckRagdollTimer(hum)
    
end

I dont set platform stand on any other script other then this one

stuck wasp
#

I would suggest maybe changing the humanoid's state to Enum.HumanoidStateType.Physics while ragdolling

dull dockBOT
#

studio** You are now Level 4! **studio

stuck wasp
#

use humanoid:ChangeState()

spring mountain
stuck wasp
#

wdym

spring mountain
# stuck wasp wdym

Like, i jump, enter ragdoll, but the platform stand is set to false so i can just move and my character levitates mid air

vital totem
spring mountain
vital totem
#

can you send a video

vital totem
#

if its server then you need to set networkownership to nil in order to change the humanoids state to physics or use a client script for that

spring mountain
spring mountain
#

like near the end of the video

#

ignore the backflips, i fixed that

spring mountain