Viewport not working?

So I got this script here (Server Script)

local viewport = require(script.Parent.Parent.Parent.Viewport)

local rr = script.Parent

local v = game.ServerStorage:WaitForChild("Tools"):WaitForChild("Food&Drinks"):WaitForChild(rr.What.Value)

print(v)

rr.Name = v.Name

viewport:viewport(v, rr.ViewportFrame, 4)

print("did")

that sends a thing to this viewport script

local viewport = {}

function viewport:viewport(model, vpf , fov)
	local camera = Instance.new("Camera")
    camera.FieldOfView = fov
    vpf.CurrentCamera = camera
    vpf.Visible = true
	model:Clone().Parent = vpf
	local currentAngle = 0
	local modelCF, modelSize = model:GetBoundingBox()	
	
	local rotInv = (modelCF - modelCF.p):inverse()
	modelCF = modelCF * rotInv
	modelSize = rotInv * modelSize
	modelSize = Vector3.new(math.abs(modelSize.x), math.abs(modelSize.y), math.abs(modelSize.z))
	
	local diagonal = 0
	local maxExtent = math.max(modelSize.x, modelSize.y, modelSize.z)
	local tan = math.tan(math.rad(camera.FieldOfView/2))
	
	if (maxExtent == modelSize.x) then
		diagonal = math.sqrt(modelSize.y*modelSize.y + modelSize.z*modelSize.z)/2
	elseif (maxExtent == modelSize.y) then
		diagonal = math.sqrt(modelSize.x*modelSize.x + modelSize.z*modelSize.z)/2
	else
		diagonal = math.sqrt(modelSize.x*modelSize.x + modelSize.y*modelSize.y)/2
	end
	
	local minDist = (maxExtent/2)/tan + diagonal

	end

return viewport

Module Script

but it continues not to work, no errors, no nothing, I have 0 clue why?

You forgot quotation marks on the last WaitForChild in the server script

because im its finding something from the value of something else