updateEvent.OnServerEvent:Connect(function(R,C,w)local A=R.Character if A.Humanoid.RigType==Enum.HumanoidRigType.R6 then A.Torso.Neck.C0=C;(A.Torso:FindFirstChild("\082\105\103\104\116 \083\104\111\117\108\100\101\114")).C0=w else A.Head.Neck.C0=C;(A.RightUpperArm:FindFirstChild("\082\105\103\104\116\083\104\111\117\108\100\101\114")).C0=w end end)
-- Bind function to update event. Used to update player's orientation if FilteringEnabled
-- is true (otherwise the rotation would not replicate from the rotating player)
updateEvent.OnServerEvent:Connect(function(player, neckC0, shoulderC0)
	local character = player.Character
	if character.Humanoid.RigType == Enum.HumanoidRigType.R6 then
		character.Torso.Neck.C0 = neckC0
		character.Torso:FindFirstChild("Right Shoulder").C0 = shoulderC0
	else
		character.Head.Neck.C0 = neckC0
		character.RightUpperArm:FindFirstChild("RightShoulder").C0 = shoulderC0
	end
end)
