declare script as variable, with variable in it type

hello there :slight_smile:
in this project players can generate script, and then save it with any name they want. in Dropdown players can choose they script’s name and attach it to gameObject. all is fine except last step. i need to declare script as variable, with name of chosen name in Dropdown menu. but the name is in another variable, and Unity thinks, that another variable is scripts name. please, help)

public var dropboxChoosedItemName : String;

function LoadScript()
	dropboxChoosedItemName = dropbox.GetComponent.<UI.Dropdown>().captionText.text;
	var newScript : dropboxChoosedItemName;

BCE0018: The name ‘dropboxChoosedItemName’ does not denote a valid type (‘not found’).

any ideas?.. please…