script to activate another script when collide with a cube.

I wanted a little help I’m completely disabling my script store, and I wanted that when he arrived near a collider it activates my script, remembering that he put in my player but not this on … I made a script But it does not work … do not know why I wanted a help, anyone?

var script : DBStoreController;
        function OnTriggerEnter (col : Collider) {
        if( == "LojaBlock")
        script = GetComponent(DBStoreController); = true;

I’d be surprised if no errors are showing up. Active is not the correct word to use. Enabled is the proper way of doing this. Change: = true;


script.enabled = true;