--                                                     in the mainUI

closeButton.MouseButton1Down:Connect(function()
	topbar_closeButton_p:Play()
	hideMainWindow()
end)

closeButton.MouseButton1Up:Connect(function()
	topbar_closeButton_f:Cancel()
	topbar_closebutton_r:Play()
	topbar_closebutton_r.Completed:Wait()
	topbar_closeButton_nf:Play()
end)
