Moving object warps it I have a cup that I made and I'm trying to move the bottom part along the z axis. I click on the edges using alt + click and press g and then z to move it, but when I do that, the bottom is able to move up and down but it ends up moving it in a really weird way (it moves toward my direction and up/down). What setting do I change so that I can fix this?
The object has a solidify and subdivision surface modifier attaches but removing them doesn't change anything so I don't think that has to do with this.
This is what happens when I try to move the bottom along the z axis while facing the cup
I downloaded the file.  When I went into Edit Mode, I couldn't select anything for some reason, so I wasn't able to test your exact problem, but I noticed that in Object Mode the whole cup does exactly what you're describing, and I figured out why it's doing that, and it would affect Edit Mode transformations as well.
You have snapping turned on; that's the magnet button up at the top of the viewport.  That is constraining the selection to your floor plane.  So you're trying to move it in the Z axis, but that is exactly what it cannot do while it's set to be snapped to the floor plane, and so it just moves in whatever axes it can.  Turn off snapping, and it behaves normally.