Help with cloning gameobjects in certain positions.

For posting code on the forums: Using code tags properly

You have spelling mistakes and other syntax issues.

Just starting? Try here: Learn

here: Learn game development w/ Unity | Courses & tutorials in game design, VR, AR, & Real-time 3D | Unity Learn

and here: Learn game development w/ Unity | Courses & tutorials in game design, VR, AR, & Real-time 3D | Unity Learn

Is +z forward or something else?
Instantiate the cube and then set its position to the player’s position plus some forward amount, eg:

GameObject newCube = Instantiate(cubePrefab); 
newCube.position = transform.position + Vector3.forward * 2;