I'm looking for a way (maybe via / gamerule (?)), How to use the game mode adventure / 2 or survival / 0 command blocks e.g. Button can execute.
In the command block you write: @p gamemode 2
You just put the button on the command block and write the command in… Bruh…