function ScreenSpace.ScreenWidthToWorldWidth(Q,z)local Y=ScreenSpace.AspectRatio()local J=math.tan(math.rad(workspace.CurrentCamera.FieldOfView)/2)local H=Y*J local N=ScreenSpace.ViewSizeX()return((-(Q/N)*2)*H)*z end function ScreenSpace.ScreenHeightToWorldHeight(Q,z)local Y=math.tan(math.rad(workspace.CurrentCamera.FieldOfView)/2)local J=ScreenSpace.ViewSizeY()return((-(Q/J)*2)*Y)*z end
-- ScreenSize -> WorldSize
function ScreenSpace.ScreenWidthToWorldWidth(screenWidth, depth)
	local aspectRatio = ScreenSpace.AspectRatio()
	local hfactor = math.tan(math.rad(workspace.CurrentCamera.FieldOfView) / 2)
	local wfactor = aspectRatio * hfactor
	local sx = ScreenSpace.ViewSizeX()
	--
	return -(screenWidth / sx) * 2 * wfactor * depth
end
function ScreenSpace.ScreenHeightToWorldHeight(screenHeight, depth)
	local hfactor = math.tan(math.rad(workspace.CurrentCamera.FieldOfView) / 2)
	local sy = ScreenSpace.ViewSizeY()
	--
	return -(screenHeight / sy) * 2 * hfactor * depth
end
