I don’t know about other schools but at mine you wasn’t allowed in the buildings at break and lunchtime.
The doors would be held shut by these magnets on top of the door, we used to stick a 2p onto the magnet to keep the doors from shutting, run in and send the teachers on a wild goose chase