So the problem is that i need some help to destroy an object.
am currently using this code;
var Control_box;
var Roadblock : Transform;
function OnControllerColliderHit (hit:ControllerColliderHit)
{
// if the player hits a control box
if (hit.gameObject.tag == "Control Box 1")
{
Destroy(gameObject.Find("road block 1"));
}}
the point is that when you as a player hit a control box, a door will open on the other side of the room.
but as of now i run into the control box and nothing happens.
Do you have a collider attached to the control box ?
– KiraSensei