How do i stop player from doing that when ragdolled

  1. What do you want to achieve? Player ragdol that doesn’t have spazms

  2. What is the issue?

  3. What solutions have you tried so far? I didn’t find and solutions that worked

function RagdollPlayer(Character : Model)
	game.ReplicatedStorage.Remotes.RagdollClient:FireClient(game.Players:GetPlayerFromCharacter(Character), Character.Humanoid)
	Character:FindFirstChildWhichIsA("Humanoid").BreakJointsOnDeath = false
	Character:FindFirstChildWhichIsA("Humanoid").RequiresNeck = false
	Character:FindFirstChildWhichIsA('Humanoid').AutoRotate = false
	Character:FindFirstChildWhichIsA('Humanoid').PlatformStand = true
	Character:FindFirstChildWhichIsA('Humanoid').WalkSpeed = 0

	for _, v in pairs(Character:GetDescendants()) do
		if v:IsA("Motor6D") then
			local Att0, Att1 = Instance.new("Attachment"), Instance.new("Attachment")
			Att0.CFrame = v.C0
			Att1.CFrame = v.C1
			Att0.Parent = v.Part0
			Att1.Parent = v.Part1
			local BSC = Instance.new("BallSocketConstraint")
			BSC.Attachment0 = Att0
			BSC.Attachment1 = Att1
			BSC.Parent = v.Part0
			BSC.LimitsEnabled = true
			BSC.TwistLimitsEnabled = true

			v:Destroy()
		elseif v:IsA('BasePart') then 
			v.CanCollide = true
		end
	end
	--Character.HumanoidRootPart.CanCollide = false
	Character.Head.CanCollide = true
end
3 Likes