function hide()MainFrame.Visible=false InteractionButton.Visible=false humanoid.WalkSpeed=prevWalkSpeed or humanoid.WalkSpeed humanoid:SetStateEnabled(Enum.HumanoidStateType.Jumping,true)end function show()MainFrame.Visible=true InteractionButton.Visible=false prevWalkSpeed=humanoid.WalkSpeed humanoid.WalkSpeed=0 humanoid:SetStateEnabled(Enum.HumanoidStateType.Jumping,false)end

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