--// Add Viewport

function RotateViewportModule:AddViewport(viewport)
	spawn(function()
		if viewport:FindFirstChildWhichIsA("Model") ~= nil then
			local model = viewport:FindFirstChildWhichIsA("Model")
			if viewport:FindFirstChildWhichIsA("Camera") ~= nil then
				local camera = viewport:FindFirstChildWhichIsA("Camera")
				
				self:EndViewport()
				event = setRotationEvent(model, camera)
			end
		end
	end)
end

return RotateViewportModule
