i have seen the command public transform but can you add .x or .y to it?
maybe you want
public Vector3 position;
or ?