function Portal.new(S)local e=setmetatable({},Portal)e.SurfaceGUI=S e.Camera=Instance.new("\067\097\109\101\114\097",S)e.ViewportFrame=VPF:Clone()e.ViewportFrame.CurrentCamera=e.Camera e.ViewportFrame.Parent=S return e end function Portal.fromPart(S,e,z)local l=Instance.new("\083\117\114\102\097\099\101\071\117\105")l.Face=e l.Adornee=S l.ClipsDescendants=true l.Parent=z return Portal.new(l)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
