For posting code on the forums: Using code tags properly
You have spelling mistakes and other syntax issues.
Just starting? Try here: 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;