To pause the entire game (physics and all), you’ll want to call this:
get_tree().paused = true
To ensure that a node or scene can still operate while the game is paused, be sure to set its pause_mode property (just via the inspector) to process. That’ll allow it (and any of its children assuming their pause_mode is inherit) to ignore the pause.