#How to make Smooth Ragdoll Replication?

1 messages · Page 1 of 1 (latest)

rose knoll
#

i tried to make smooth Ragdoll like YBA, TSB, JJS but i have problem with it.
delayed, laggy, choppy ragdolls on other players.

#

Client

local plr = game.Players.LocalPlayer
local char = plr.Character or plr.CharacterAdded:Wait()
local hrp = char:WaitForChild("HumanoidRootPart")
local hum = char:WaitForChild("Humanoid")
hum:SetStateEnabled(Enum.HumanoidStateType.Ragdoll, false)
hum:SetStateEnabled(Enum.HumanoidStateType.FallingDown, false)
hum.RequiresNeck=false
hum.BreakJointsOnDeath = false

char:GetAttributeChangedSignal("Ragdoll"):Connect(function()
    if char:GetAttribute("Ragdoll") then
        hum:SetStateEnabled(Enum.HumanoidStateType.Freefall, false)
        hum:ChangeState(Enum.HumanoidStateType.Physics)
    else
        hum:ChangeState(Enum.HumanoidStateType.Running)
        hum:SetStateEnabled(Enum.HumanoidStateType.Freefall, true)
    end
end)
#

Triggering Module from Server

RagdollModule.Ragdoll(EnemyCharacter,2,Character)
wild agate
#

is that on the serve side?

rose knoll
inner quailBOT
#

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

wild agate
#

and play the palyer ragdoll for the local players who recieved the signal

rose knoll
wild agate
#

yes

#

its easy tho

rose knoll
wild agate
#

lol just tweak the script or remake it if u want so it plays for certain player

#

and when fires just send the player name throguh the remote event

rose knoll
#

server sends remote to the player, then player triggers module?

#

from client

wild agate
#

yes

#

like make smth like function ragdollplayer(name) and when server sends the player name to all clients just run the function

#

i mean its not basic like this but you know the idea

rose knoll
#

ty, i will try it

wild agate
#

alright if u get a bit lost try ask gpt or in youtube search for networking

#

luau networking guide

wild agate
#

no its network

#

like handling logic in server visuals in client side

rose knoll
rose knoll
wild agate
rose knoll