-- 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)
