IMPORTANT! how to set float to the player x position

ok first of all thanks so much for trying to help but i cant for the life of me figure out how to set a float to a players x position so i can spawn a enemy -10 from the xpos if that makes sense so once you get the players position minus it by 10 all times to i can spawn the same enemy close to the player!
THANK YOU SO MUCH

If you want to set s position to it’s original position + some number, you can use
transform.Translate(x,y,z)