i have a 2D game when u can play with a plane how can i make borders to the game

If by ‘borders’ you mean barriers to keep your player from leaving the screen, you could set up invisible game objects on the edges of the screen with colliders that can only collide with the player. That’s one way to do it. Or you could use a script that prevents the player from passing a certain X and Y value.