The question is, how are you changing the gravity? You've successfully changed a variable to the player, but that variable didn't exist before, and there is no 'gravity' variable for players, so it wouldn't be that easy. You'd basically need to know some pretty advanced things to get it going, honestly.