Spawn a prefab on collosion

if anyone can tell me a script to use that spawns a prefab on colosion i would apprecheat it

This should do the job for you.

public GameObject prefab; //Drop your prefab here in the inspector

void OnCollision (Collision _col){
Instantiate(prefab, Vector3 position, Vector3 rotation);
}