Trouble with basic spell casting

I am new to unity and I am having trouble finding info on extremely basic spell casting. By that I simply mean pressing a key which then creates a particle system + collider that travels forward. I already have a terrain, moving character and particle system. So I am simply looking for a way to create the particle system at my character and have it travel outward essentially. Once I get that I will move on to collisions. I have tried looking around on google and youtube but can’t find any info. Any help would be much appreciated.

Just look at Instantiating Objects. Or if your simple wanting to put the particle system at a specific location look at Raycasting expecially at the hit.point.position ← which is a vector3 then you can place your particles at that location

oh man i have one from a long time ago, cant really remember how it works, but http://forum.unity3d.com/threads/90304-Wow-Like-Button!-(Free-Script) plus i was not as well “smart” as i am now in game dev :stuck_out_tongue: so it might be messy … idk

Well I figured out a way to shoot a prefab particle from a character. I thought I would put it here in case anyone else needs it. I’m still having a lot of trouble with the collision detection to get it to disappear (eventually explode) once it comes in contact with something though. I can get it to stop moving but the clone object doesn’t get deleted and the particle stays at impact.

Anyway here is my basic script. Just drag your prefab into the spell variable. Input is set as right mouse click.

public Rigidbody spell;
public Rigidbody spellclone;	

	void FireSpell() {
	
	spellclone = Instantiate(spell, transform.position, transform.rotation) as Rigidbody;
	spellclone.velocity = transform.TransformDirection(Vector3.forward * 50);
		
	}
	
	void Update() {
	if (Input.GetMouseButtonUp (1))
		    	{
			FireSpell();
			}
	}	  
         void OnCollisionEnter() {
		       Destroy(spellclone);
	}                       	
	
}