Ragdoll camera issue

this happens for me script and its annoying

function Ragdoll()
	for i,Motor in pairs(Char:GetDescendants()) do
		if Motor:IsA("Motor6D") then
			local a1 = Instance.new("Attachment")
			local a2 = Instance.new("Attachment")
			local _0 = Motor.Part0
			local _1 = Motor.Part1
			local BSC = Instance.new("BallSocketConstraint")
			a1.Parent = _0
			a2.Parent = _1
			BSC.Attachment0 = a1
			BSC.Attachment1 = a2
			BSC.LimitsEnabled = true
			BSC.TwistLimitsEnabled = true
			BSC.Parent = Motor.Parent
			a1.CFrame = Motor.C0
			a2.CFrame = Motor.C1
			Motor.Enabled = false
			MOTORS[#MOTORS+1]=Motor
		end
	end
	--Char.HumanoidRootPart.CanCollide = false
	--local welderson = Utility.Weld(Char.UpperTorso,Char.HumanoidRootPart,Char.HumanoidRootPart)
	script.ChangeState:FireClient(Plr,"RA") --this does [[		Humanoid:ChangeState(Enum.HumanoidStateType.Ragdoll)
		Humanoid:SetStateEnabled(Enum.HumanoidStateType.GettingUp,false)]] on a local script
	Ragdolled.Value = true
end

It is doing that because the gun’s camera is following the head when the head is shaking (I think).

I figured that, but how do I fix it

And Also, i want the head to stop shaking around. I can fix the tool thing, but I need the head to stop shaking it looks weird

add limiter to the angle (if you could)

there are other ragdoll scripts that you could use that has this already so you wouldn’t have to set limits to the angles of the attachments.

Ok. Im not too familiar with BSCs but ill try it.

What should the limits be? ive tried a lot of angles but it still doesnt look good

I am using this code to find the head connector:

if Motor.Name == "Neck" then

end

just use a different ragdoll script that could easily do it for you. manually inputting limiters take a long time. save yourself from the pain

What ragdoll script do you use?

please stop replying too much. you could take this to direct messages if you want.

i don’t recall, but you could look for any.
to put it simply, you can use anything.

Its ok ill just try and figure this out myself.