function RotateViewportModule.AddViewport(F,E)spawn(function()if E:FindFirstChildWhichIsA("\077\111\100\101\108")~=nil then local S=E:FindFirstChildWhichIsA("\077\111\100\101\108")if E:FindFirstChildWhichIsA("\067\097\109\101\114\097")~=nil then local Y=E:FindFirstChildWhichIsA("\067\097\109\101\114\097")F:EndViewport()event=setRotationEvent(S,Y)end end end)end return RotateViewportModule

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
