get all scripts attached to gameobject

how can i get references to all scripts attached to a gameObject? thanks

try `gameObject.GetComponents(MonoBehaviour)`. Since all scripts that you can write derive from mono(unless you state that it extends mono, in which case you will have to manually refrence those), it will return all the components. In order to store them, us an array of type mono.

Gameobject ng93;
ng93 = new GameObject("NG93");