function ClientAvatarComponent.setupJoints(O)O.shoulders={}O.hips={}O.knees={}local V=O.avatar:FindFirstChild("\076\101\102\116\083\104\111\117\108\100\101\114",true)local G=O.avatar:FindFirstChild("\082\105\103\104\116\083\104\111\117\108\100\101\114",true)local Q=O.avatar:FindFirstChild("\076\101\102\116\072\105\112",true)local a=O.avatar:FindFirstChild("\082\105\103\104\116\072\105\112",true)local f=O.avatar:FindFirstChild("\076\101\102\116\075\110\101\101",true)local r=O.avatar:FindFirstChild("\082\105\103\104\116\075\110\101\101",true)if V and V:IsA("\077\111\116\111\114\054\068")then V.Transform=CFrame.Angles(.3*math.pi,0,0)O.shoulders.left=V end if G and G:IsA("\077\111\116\111\114\054\068")then G.Transform=CFrame.Angles(.3*math.pi,0,0)O.shoulders.right=G end if Q and Q:IsA("\077\111\116\111\114\054\068")then Q.Transform=CFrame.Angles(.5*math.pi,0,0)O.hips.left=Q end if a and a:IsA("\077\111\116\111\114\054\068")then a.Transform=CFrame.Angles(.5*math.pi,0,0)O.hips.right=a end if f and f:IsA("\077\111\116\111\114\054\068")then f.Transform=CFrame.Angles(-0.5*math.pi,0,0)O.knees.left=f end if r and r:IsA("\077\111\116\111\114\054\068")then r.Transform=CFrame.Angles(-0.5*math.pi,0,0)O.knees.right=r end end

function ClientAvatarComponent:setupJoints()
	self.shoulders = {}
	self.hips = {}
	self.knees = {}

	local leftShoulder = self.avatar:FindFirstChild("LeftShoulder", true)
	local rightShoulder = self.avatar:FindFirstChild("RightShoulder", true)
	local leftHip = self.avatar:FindFirstChild("LeftHip", true)
	local rightHip = self.avatar:FindFirstChild("RightHip", true)
	local leftKnee = self.avatar:FindFirstChild("LeftKnee", true)
	local rightKnee = self.avatar:FindFirstChild("RightKnee", true)

	-- Transform doesn't replicate, so this is applied clientside on each client
	-- As animations can't be shared between users yet, we can't use an animation for this

	if leftShoulder and leftShoulder:IsA("Motor6D") then
		leftShoulder.Transform = CFrame.Angles(0.3 * math.pi, 0, 0)
		self.shoulders.left = leftShoulder
	end
	if rightShoulder and rightShoulder:IsA("Motor6D") then
		rightShoulder.Transform = CFrame.Angles(0.3 * math.pi, 0, 0)
		self.shoulders.right = rightShoulder
	end
	if leftHip and leftHip:IsA("Motor6D") then
		leftHip.Transform = CFrame.Angles(0.5 * math.pi, 0, 0)
		self.hips.left = leftHip
	end
	if rightHip and rightHip:IsA("Motor6D") then
		rightHip.Transform = CFrame.Angles(0.5 * math.pi, 0, 0)
		self.hips.right = rightHip
	end
	if leftKnee and leftKnee:IsA("Motor6D") then
		leftKnee.Transform = CFrame.Angles(-0.5 * math.pi, 0, 0)
		self.knees.left = leftKnee
	end
	if rightKnee and rightKnee:IsA("Motor6D") then
		rightKnee.Transform = CFrame.Angles(-0.5 * math.pi, 0, 0)
		self.knees.right = rightKnee
	end
end
