#inconsistent ragdoll prediction

1 messages · Page 1 of 1 (latest)

halcyon marsh
#
ragdollPredict.OnClientEvent:Connect(function(ragdollCharacter, knockback, originalTime)
    print(ragdollCharacter)
    ragdollCharacter.Archivable = true
    local delay = workspace:GetServerTimeNow() - originalTime
    local clonedchar = ragdollCharacter:Clone()

    clonedchar.Parent = workspace
    
    for _,v in pairs(ragdollCharacter:GetDescendants()) do 
        if (v:IsA("BasePart") or v:IsA("Decal")) and v.Name ~= "collisionpart" and v.Name ~= "HumanoidRootPart" then
            
            v.Transparency = 0.7
        
        end
        if v:IsA("BasePart") then
            v.CollisionGroup = "clientrigs"
        end
    end
    for _,v in pairs(clonedchar:GetDescendants()) do 
        
    
    end

    ragdoll.Ragdoll(clonedchar, true)
    local elapsed =0
    clonedchar.HumanoidRootPart.AssemblyLinearVelocity = knockback

    task.wait(2+delay)

    clonedchar:Destroy()

    for _,v in pairs(ragdollCharacter:GetDescendants()) do 
        if (v:IsA("BasePart") or v:IsA("Decal")) and v.Name ~= "collisionpart" and v.Name ~= "HumanoidRootPart" then
            v.Transparency = 0

        end
        if v:IsA("BasePart") then
            v.CollisionGroup = "Default"
        end
    end

end)
halcyon marsh
#

ill send screenshots hold up

#

@rare marten

rare marten
#

evil ragdoll

steel warren
#

so the transparent one is the client or server?

halcyon marsh
#

i think the issue is collision because when the character is hit in a straight line it works fine

steel warren
#

so what are you trying to do?

steel warren
halcyon marsh
steel warren
halcyon marsh
steel warren
#

so you want the client and the server to match?

steel warren
#

that is not possible

#

show me where you call the module

halcyon marsh
steel warren
#

client-side ragdolls run physics locally for a smooth, individual experience, but are not synced for other players, leading to visual discrepancies. Server-side ragdolls are synced for all players, but can suffer from lag and choppiness due to the need to replicate physics data across the network. The difference arises from how the physics simulation is handled

#

the server is less smoother than the local client

#

so i don't think you can synced them

halcyon marsh
steel warren
#

let me know if it works

halcyon marsh
charred yokeBOT
#

studio** You are now Level 13! **studio

halcyon marsh
#

but i know its possible

steel warren
rare marten
#

same calculations

#

then scaled based on time since last heartbeat

#

presumably

slate estuary
slate estuary
steel warren
steel warren
halcyon marsh
#

I just skipped ahead around 5 studs on both client and server to eliminate and collisions with the attacking player

rare marten
#

I thought that wouldnt be a problem