on screen text box

hi, i would like someone to tell me how i could get a text box that will be viewable by the player and that the player can type in that will alter a variable, like for example, a text box with text next to it saying ‘Number of enemies’ and the text box can only have number input, then the game tells a variable named ‘numberOfEnemies’ what the player put in.

You can use GUI Textfield (documentation).