function ScreenSpace.ScreenToWorld(c,e,b)local W=ScreenSpace.AspectRatio()local i=math.tan(math.rad(Workspace.CurrentCamera.FieldOfView)/2)local Q=W*i local n,P=(c/ScreenSpace.ViewSizeX())*2-1,(e/ScreenSpace.ViewSizeY())*2-1 local u=(n*-Q)*b local s=(P*i)*b return Vector3.new(u,s,b)end

function ScreenSpace.ScreenToWorld(x, y, depth)
	local aspectRatio = ScreenSpace.AspectRatio()
	local hfactor = math.tan(math.rad(Workspace.CurrentCamera.FieldOfView)/2)
	local wfactor = aspectRatio*hfactor
	--
	local xf, yf = x/ScreenSpace.ViewSizeX()*2 - 1, y/ScreenSpace.ViewSizeY()*2 - 1
	local xpos = xf * -wfactor * depth
	local ypos = yf *  hfactor * depth
	--
	return Vector3.new(xpos, ypos, depth)
end
