No, actually, but the rest of the message tells your exactly where something is missing. If you had read your script carefully you would have found out what was missing already.
Hello My friend this is the code you asked for and I am your fbi agent
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class deletethis : MonoBehaviour
{
//This is the object which you want to spawn ^_^
public GameObject pipe; // As you said
// You have to Initialize this in the Inspector
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
//This is the functin which spawn things
// This is the object to spawn || This is the location to spawn || And this is the roation for the spawned object
//In the below Function
Instantiate(pipe, new Vector3(0f, 0f, 0f), Quaternion.identity);
}
}
The error message says “pipespawner.cs(9,25)” which means line 9, character 25 of your pipespawner script. Something is missing there and it’s not a “,”; you can easily figure out what it is if you compare this line with the other of the same kind you already wrote.
If you are a beginner, you need to learn how to write scripts, how to keep them clean and organized and about naming conventions.
Characters numbering begins with the first character of the line, even if it’s a blank space. This puts you before 0 and after reading the line before, you would have noticed that what was missing is “=”.