Solved: Compiler error with instantiate

What I am trying to do is instantiate a particle at the enemy object’s position when it is hit with a raycast “bullet”. Here is the code I am using for this:

Instantiate(part, hit.collider.position, hit.collider.transform.Quaternion.identity);

This code is placed in my code which checks for the raycast to hit the enemy object. The rest if the code works fine, it is just the above line of code which isn’t functioning.
The error that comes back:

Assets/Player/Player Scripts/playerShoot.js(21,36): BCE0023: No appropriate version of 'UnityEngine.Object.Instantiate' for the argument list '(UnityEngine.Particle, System.Object, System.Object)' was found.

The variable “part” is set to type Particle at the very beginning of the script, and I want to set what particle through the inspector. It is not showing up in the inspector, I assume because the script cannot compile now(The rest of the variables work fine).I’m assuming either the position or rotation argument is incorrect, and I am just doing it wrong. Any ideas?

Also, instead of the particle being spawned at the position of the enemy object, how would I spawn it at specifically the location where the raycast hit? Thanks so much!

You should really put #pragma strict at the top of your file - it helps a lot with typing errors like the ones you have here.

  Instantiate(part, hit.transform.position, Quaternion.identity);