function ScreenSpace.WorldToScreen(u)local R=workspace.CurrentCamera.CoordinateFrame:pointToObjectSpace(u)local X=ScreenSpace.AspectRatio()local S=math.tan(math.rad(workspace.CurrentCamera.FieldOfView)/2)local V=X*S local Q=(R.x/R.z)/-V local A=(R.y/R.z)/S return Vector2.new(ScreenSpace.ViewSizeX()*(.5+.5*Q),ScreenSpace.ViewSizeY()*(.5+.5*A))end

function ScreenSpace.WorldToScreen(at)
	local point = workspace.CurrentCamera.CoordinateFrame:pointToObjectSpace(at)
	local aspectRatio = ScreenSpace.AspectRatio()
	local hfactor = math.tan(math.rad(workspace.CurrentCamera.FieldOfView)/2)
	local wfactor = aspectRatio*hfactor
	--
	local x = (point.x/point.z) / -wfactor
	local y = (point.y/point.z) /  hfactor
	--
	return Vector2.new(ScreenSpace.ViewSizeX()*(0.5 + 0.5*x), ScreenSpace.ViewSizeY()*(0.5 + 0.5*y))
end
