Convert string To Script

is it possible to convert string to scripts?

for example

public string[] ScriptName;

void Start () {
ScriptName[0]="test";

gameObject.AddComponent(ScriptName[0] ) ;
    }

???

Hello there,

I’m not sure if it is possible to do the exact thing you are asking anymore, but this link here may help you find an alternative solution.

Hope that helps!

Cheers,

~LegendBacon