How do I make a turn system for my game?

I want the player to not be able to attack in between the robot attacking and pressing the attack button.
Here’s the game:

@Drchicken i made a turn based battle for my game, here.https://flowlab.io/game/play/2290744