I get the error
from the codevar Expl = Instantiate(Explosion, transform.position, transform.rotation);
I get the error
from the codevar Expl = Instantiate(Explosion, transform.position, transform.rotation);
seems like your missing a script on the explosion prefab
what script? does it have to do with this? Expl.gameObject.AddComponent(explosion);
???
You probably renamed a script that was already in a GameObject or Prefab. If you rename a script, it gets lost in all GameObjects and Prefabs that are using it.
but i didnt rename it, and it works, but it still gives me that message
???
Your Explosion object is messed up. Go click it and fix it.
Also “???” is not an anything.
oh, ok thanks!! there was a script that I deleted and it was still in the explosion! thanks!