How can i trigger a script by collision with a box?

How can i trigger a script by collision with a box? I have a box collider on a object and a script on another object, how can i activate the script using the box Collider ?

You need an enabled script on either of those object that implement OnCollisionEnter or OnTriggerEnter, depending if those objects have isTrigger true. Inside, you’ll have access to the object and you can activate the script.

However, GetComponent won’t find a disabled script. You need to get the reference of that script at start before it’s disabled, or you need that script to have a WakeUp function so you can send a message (not sure about that one, I never use SendMessage).