Whats wrong with my script?

so I tried making a script so that when the trigger hits an object the objects renderer will disable. I’ve added a box collider with is trigger enabled, and I placed it behind the camera and attached it to the first person controller so it’s like occlusion culling. I made a script that I attached to the barrels so that when the trigger behind the camera comes into contact with the barrel it will disable the renderer and when the trigger leaves the barrel the barrels renderer will enable. The problem is that the barrels won’t dissapear.
heres the script I made which I attach to the barrel.

using UnityEngine;
using System.Collections;

public class Occlusionculling : MonoBehaviour {

	private Transform target;

	// Use this for initialization
	void Start () {
		target = this.transform;
	}
	
	// Update is called once per frame
	void Update () {
	
	}

	void OnTriggerEnter(Collider other)
	{
	
	   target.renderer.enabled = false;		
	
		
	}


	void OnTriggerExit(Collider other)
	{
		target.renderer.enabled = true;		
			
				
	}
}

heres a pic of my scene.

[35901-unity+answers.png|35901]

You have to ad a tag to your playertrigger and in the void entertrigger you ha e to type
if(other.tag == “PlayerTrigger”){
Target.render.enabled = true;
}

Do The same thing for the triggerexit and it should work