function Portal.new(e)local Q=setmetatable({},Portal)Q.SurfaceGUI=e Q.Camera=Instance.new("\067\097\109\101\114\097",e)Q.ViewportFrame=VPF:Clone()Q.ViewportFrame.CurrentCamera=Q.Camera Q.ViewportFrame.Parent=e return Q end function Portal.fromPart(e,Q,L)local Z=Instance.new("\083\117\114\102\097\099\101\071\117\105")Z.Face=Q Z.Adornee=e Z.ClipsDescendants=true Z.Parent=L return Portal.new(Z)end
--

function Portal.new(surfaceGUI)
	local self = setmetatable({}, Portal)

	self.SurfaceGUI = surfaceGUI
	self.Camera = Instance.new("Camera", surfaceGUI)
	self.ViewportFrame = VPF:Clone()
	self.ViewportFrame.CurrentCamera = self.Camera
	self.ViewportFrame.Parent = surfaceGUI

	return self
end

function Portal.fromPart(part, enum, parent)
	local surfaceGUI = Instance.new("SurfaceGui")
	surfaceGUI.Face = enum
	surfaceGUI.Adornee = part
	surfaceGUI.ClipsDescendants = true
	surfaceGUI.Parent = parent

	return Portal.new(surfaceGUI)
end
