function ScreenSpace.WorldToScreen(o)local Z=Workspace.CurrentCamera.CoordinateFrame:pointToObjectSpace(o)local h=ScreenSpace.AspectRatio()local K=math.tan(math.rad(Workspace.CurrentCamera.FieldOfView)/2)local H=h*K local V=(Z.x/Z.z)/-H local e=(Z.y/Z.z)/K return Vector2.new(ScreenSpace.ViewSizeX()*(.5+.5*V),ScreenSpace.ViewSizeY()*(.5+.5*e))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
