-- Creates a viewport with a given object, has 1,1 size and is positioned in middle of parent element.

VC.CreateViewport = function(parent,Object,Rotation, distanceOverride)
	
	local Viewport =Instance.new("ViewportFrame")
	
	if parent:FindFirstChild("ViewportFrame") then
		parent:FindFirstChild("ViewportFrame"):Destroy()
	end
	
	Viewport.LightDirection = Vector3.new(0, -1, 0)
	
	Viewport.LightColor = Color3.fromRGB(255, 167, 43)
	
	Viewport.Ambient = Color3.fromRGB(255,255,255)
	
	
	local OriginalObj = Object
	