That seems kind of silly… I’m assuming your public var “explosion : Transform” is a prefab (which you could declare as GameObject instead of Transform if you want, you’re not directly accessing any variables or functions of the transform from the looks of it anyway). If every explosion prefab should have the explosion script, then just put the script on the prefab!