Why is this happening to my ballsocketconstraints

I literally made a quick ragdoll system the same I ever do and yet this is what happens half the time


my joints are somehow connecting in weird places I don’t even know how to explain this.


like the arm is literally just offset it makes NO sense

here’s the code if that is important

local LA: Part = Object:WaitForChild("Left Arm")
			local RA: Part = Object:WaitForChild("Right Arm")
			local LL: Part = Object:WaitForChild("Left Leg")
			local RL: Part = Object:WaitForChild("Right Leg")
			local T: Part = Object:WaitForChild("Torso")
			local H: Part = Object:WaitForChild("Head")
			
			local ragdollConfig = {
				[LA] = CFrame.new(1, 0.5, 0),
				[RA] = CFrame.new(-1, 0.5, 0),
				[LL] = CFrame.new(0.5, -1, 0),
				[RL] = CFrame.new(-0.5, -1, 0),
				[H] = CFrame.new(0, 1, 0) * CFrame.fromEulerAnglesXYZ(0, 0, math.rad(90)),

			}
			local sockets = {}
			
			for Target:Part, Data in ragdollConfig do
				local w = Instance.new("BallSocketConstraint")
				local a0 = Instance.new("Attachment")
				local a1 = Instance.new("Attachment")
				local angle = 75

				a0.Parent = T
				a0.CFrame = Data
				
				a1.Parent = Target
				a1.WorldPosition = a0.WorldPosition
				a1.WorldOrientation = a0.WorldOrientation
				
				w.Attachment0 = a0
				w.Attachment1 = a1
				w.Enabled = false
				w.LimitsEnabled = true
				w.TwistLowerAngle = -angle
				w.TwistUpperAngle = angle
				w.Parent = Character
				
				table.insert(sockets,w)
			end

my stupid cframes in the tables were messed up so it made the ragdoll disfigured but I have it fixed now

I genuinely have no idea how I didn’t catch this after checking the constraints multiple times