-- * Fires when the local player's MouseButton1 interacts with the
--	 `ExitButton` GUI. Sets `Interacting` BoolValue to false.
--
--	 Arguments: None
--	 Return: None
-- * 

function hide()
	MainFrame.Visible = false
	InteractionButton.Visible = false
	
	-- Unfreeze the player
	humanoid.WalkSpeed = prevWalkSpeed or humanoid.WalkSpeed
	humanoid:SetStateEnabled(Enum.HumanoidStateType.Jumping, true)
end

function show()
	MainFrame.Visible = true
	InteractionButton.Visible = false
	
	-- Freeze the player
	prevWalkSpeed = humanoid.WalkSpeed
	humanoid.WalkSpeed = 0
	humanoid:SetStateEnabled(Enum.HumanoidStateType.Jumping, false)
end