Unity get script without know type name

I have a GameObject with a script called Savable.js attached now Savable has a public variable called scriptWithFunctions. This variable is in the inspector and I want to be able to drag any script on to the scriptWithFunctions. Then the Savable will call a function in the scriptWithFunctions script, however I do not know the name of the script ahead of time. I need to be able to do this.

#pragma strict

var typeId = "none";
var saveFunctions : Any Type Of Script;

function callStuff() {
	saveFunctions.someFunction();
}

But it is not working, please help

You should look up to some tutorials about the languages you are using to understand how it works, because the way you want to dit it is not possible.

A solution is creating an abstract class (or interface) called ISavable containing the definition of the functions applying saving, make your current savable classes inherit that interface, so you can treat all of these types as ISavable !

If you don’t understand what I’m saying, please check out Inheritance tutorials, abstractions, etc…