The parameters for Vector3 are (float, float, float) and you have used (float, quaternion, nothing) so obviously, it’s not going to work out with those typos.
And that Random.Range lacks f, so the returned value will most likely be rounded to int.
remove new before new Vector3(Random.Range(-3,3)
create Vector3 pos = new Vector3(0, 0, 0);
Instantiate (cube, pos, Quaternion.identity);
here is a sample,
void Start()
{
Vector3 pos = new Vector3(0, 0, 0);
for (int i = 0; i < 20; i++)
{
//Instantiate(platform, new Vector3(i, pos, Quaternion.identity)); //----Doesnt work
Instantiate(platform, pos, Quaternion.identity); //----Does work
pos.z += 10;
@troynall , thanks for being helpful, but please look at the dates of posts you’re replying. The last post in the thread was from over seven years ago. And also use code tags when you post code.