#How to make Smooth Ragdoll Replication?
1 messages · Page 1 of 1 (latest)
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)
is that on the serve side?
triggering module from server script
** You are now Level 1! **
cant read the full script but make a replicating script when someone ragdolls it fire an event to serve and server fires all clients event
and play the palyer ragdoll for the local players who recieved the signal
i need to visualize ragdoll physics on client?

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
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
ty, i will try it
alright if u get a bit lost try ask gpt or in youtube search for networking
luau networking guide
networkOwnerShip?
lwk just get better

do i need to clone other players and visualize ragdoll on clone, or i can do this right on player`s character?
just do it right on the character of the players but localy
Tysm for helping, i struggled but did it!