first put the prefab into the scene.
then make the script get observed in the inspector.
then apply the changes to the prefab and destroy the object in the scene.
After those steps the script should work fine.
↧