How do i fix this?

How do i fix this, prog2:TweenSize((prog.Size + UDim2.new(0,0,Inc,0)), Enum.EasingDirection.Out, Enum.EasingStyle.Linear,0.2, false,nil) it tweens the Gui like this:

Instead, I want the Gui to get bigger

This is the full script:

local ProximityPromptService = game:GetService("ProximityPromptService")


local UIS = game:GetService("UserInputService")
local KeyDown = false
local prog = script.Parent.Button.ProgBar
local prog2 = script.Parent.Button
local prox = script.Parent.Button
local prompt = script.Parent
local prompt2 = prompt.Button


function Hide() 
	prompt.Enabled = false
	prompt.Adornee = nil
end



function E()
	local Inc = 1/(script.Parent.ClosestPart.Value.E_Event.Configuration.Time.Value/0.2)
	if script.Parent.ClosestPart.Value.E_Event.Configuration.Time.Value <= 1 then
		script.Parent.ClosestPart.Value.E_Event:FireServer()
		Hide() 
		prog.YSize.Value = 0
		KeyDown = false
	elseif script.Parent.ClosestPart.Value.E_Event.Configuration.Time.Value > 1 then
		wait()
		repeat
			if KeyDown == true and script.Parent.Adornee ~= nil then
				if prog.YSize.Value < 1 then --Number value is size of the moving E part
					prog.YSize.Value = prog.YSize.Value + Inc
					prog2.YSize.Value = prog2.YSize.Value + Inc
					prog:TweenSize((prog.Size + UDim2.new(0,0,Inc,0)), Enum.EasingDirection.InOut, Enum.EasingStyle.Linear,0.2, false,nil)
					prog2:TweenSize((prog.Size + UDim2.new(0,0,Inc,0)), Enum.EasingDirection.Out, Enum.EasingStyle.Linear,0.2, false,nil)
				else
					wait()
					script.Parent.ClosestPart.Value.E_Event:FireServer()
					prog.YSize.Value = 0
					prog2.YSize.Value = 0
					
					KeyDown = false
				end
			elseif KeyDown == false and script.Parent.Adornee ~= nil then
				prog.YSize.Value = 0
				prog.Size = UDim2.new(1,0,0,0)
				prog2.YSize.Value = 0
				prog2.Size = UDim2.new(1,0,0,0)
			elseif KeyDown == true and script.Parent.Adornee == nil then
				prog.YSize.Value = 0
				prog.Size = UDim2.new(1,0,0,0)
				prog2.YSize.Value = 0
				prog2.Size = UDim2.new(1,0,0,0)
				KeyDown = false
			end
			wait(0.2)
		until KeyDown == false
		prog.YSize.Value = 0
		prog.Size = UDim2.new(1,0,0,0)
		prog2.YSize.Value = 0
		prog2.Size = UDim2.new(1,0,0,0)
	end
end

UIS.InputBegan:Connect(function(Key, Gameprocess)
	if Key.KeyCode == Enum.KeyCode.E and not Gameprocess then
		KeyDown = true
		prog.YSize.Value = 0
		prog.Size = UDim2.new(1,0,0,0)
		prog2.YSize.Value = 0
		prog2.Size = UDim2.new(1,0,0,0)
		E()
	end
end)

UIS.InputEnded:Connect(function(Key, Gameprocess)
	if Key.KeyCode == Enum.KeyCode.E and not Gameprocess then
		KeyDown = false
		E()
	end
end)

UIS.InputBegan:Connect(function(Key, Gameprocess)
	if Key.KeyCode == Enum.KeyCode.ButtonX and not Gameprocess then
		KeyDown = true
		prog.YSize.Value = 0
		prog.Size = UDim2.new(1,0,0,0)
		prog2.YSize.Value = 0
		prog2.Size = UDim2.new(1,0,0,0)
		E()
	end
end)

UIS.InputEnded:Connect(function(Key, Gameprocess)
	if Key.KeyCode == Enum.KeyCode.ButtonX and not Gameprocess then
		KeyDown = false
		E()
	end
end)

script.Parent.Button.MobileButton.MouseButton1Down:Connect(function()
	KeyDown = true
	prog.YSize.Value = 0
	prog.Size = UDim2.new(1,0,0,0)
	prog2.YSize.Value = 0
	prog2.Size = UDim2.new(1,0,0,0)
	E()
end)
script.Parent.Button.MobileButton.MouseButton1Up:Connect(function()
	KeyDown = false
	E()
end)






if you need it