Instantiate doesnt copy components to clone of game object

Hi all, I have made a game object that when the main player collides with it, it uses Instantiate to make a clone of it. But these clones do not have the same attributes as the main game object had on it (Box Collider and a script), or am i writing the code wrong? I wrote the code like this :

Instaniate(gameObject);

Does anyone know why this is happening?

Do you instatiate it from a prefab or from the resources folder or what is “gameObject” in your code?