Ragdoll on client not replicating?

so i tried making a ragdoll script, it’s on a CLIENT script…

but, It didn’t replicate with other players, what is it exactly that didn’t replicate to the server so i can avoid it in the future, is it creating the attachments or ball socket joints?

              for _, motor  in character:GetDescendants() do

		if motor:IsA("Motor6D") then

			if not attachmentCFrames[motor.Name] then return end

			print(motor)
			motor.Enabled = false

			local attachment0 = Instance.new("Attachment")
			local attachment1 = Instance.new("Attachment")

			createColliderPart(motor.Part1)

			attachment0.CFrame = attachmentCFrames[motor.Name][1] -- put the attachments in specific places
			attachment1.CFrame = attachmentCFrames[motor.Name][2]

			local ballSocketConstraint = Instance.new("BallSocketConstraint")

			ballSocketConstraint.Attachment0 = attachment0 -- attach the ball socket constraint between the 2 like a rope
			ballSocketConstraint.Attachment1 = attachment1


			attachment0.Parent = motor.Part0
			attachment1.Parent = motor.Part1
			ballSocketConstraint.Parent = motor.Parent


			humanoid:SetStateEnabled(Enum.HumanoidStateType.GettingUp, false)
			humanoid:ChangeState(Enum.HumanoidStateType.Ragdoll)


			-- changestate into ragdolled
		end
	end

note i chose the most important part and removed the other parts like variables for easier reading.

1 Like

ANYTHING created on the client will not be replicated to the server, or to other players for that matter.

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.