function OrientableBody.useCameraAsSource(N)local k=0 N.renderStepConnection=RunService.RenderStepped:Connect(function(z)local L=workspace.CurrentCamera if not L then return end local l=N:face(L.CFrame.LookVector)k+=z if k>Constants.SYNC_INTERVAL and l then k%=Constants.SYNC_INTERVAL updateBodyOrientation:FireServer(l)end end)end

function OrientableBody:useCameraAsSource()
	local timeSinceLastSync = 0
	self.renderStepConnection = RunService.RenderStepped:Connect(function(delta)
		local camera = workspace.CurrentCamera
		if not camera then
			return
		end

		local orientation = self:face(camera.CFrame.LookVector)

		timeSinceLastSync += delta
		if timeSinceLastSync > Constants.SYNC_INTERVAL and orientation then
			timeSinceLastSync %= Constants.SYNC_INTERVAL
			updateBodyOrientation:FireServer(orientation)
		end
	end)
end
