function ScreenSpace.WorldWidthToScreenWidth(R,k)local t=ScreenSpace.AspectRatio()local u=math.tan(math.rad(Workspace.CurrentCamera.FieldOfView)/2)local n=t*u local L=ScreenSpace.ViewSizeX()return-(R*L)/((2*n)*k)end function ScreenSpace.WorldHeightToScreenHeight(R,k)local t=math.tan(math.rad(Workspace.CurrentCamera.FieldOfView)/2)local u=ScreenSpace.ViewSizeY()return-(R*u)/((2*t)*k)end

function ScreenSpace.WorldWidthToScreenWidth(worldWidth, depth)
	local aspectRatio = ScreenSpace.AspectRatio()
	local hfactor = math.tan(math.rad(Workspace.CurrentCamera.FieldOfView)/2)
	local wfactor = aspectRatio*hfactor
	local sx = ScreenSpace.ViewSizeX()
	--
	return -(worldWidth * sx) / (2 * wfactor * depth)
end
function ScreenSpace.WorldHeightToScreenHeight(worldHeight, depth)
	local hfactor = math.tan(math.rad(Workspace.CurrentCamera.FieldOfView)/2)
	local sy = ScreenSpace.ViewSizeY()
	--
	return -(worldHeight * sy) / (2 * hfactor * depth)
end
