My enemies are all ghost like, help please!

ok i have a basic script to get enemies to chase the player in the game but the event to hurt the player is a trigger one and when ever i set collider on enemy to trigger they walk threw my enviroment. I can’t get collisions to work cause of the 3rd person controller script. if anyone has any ideas let me know please. heres the code:

var target : Transform;
var moveSpeed = 3;
var rotationSpeed = 3;
var myTransform : Transform;
var enemy_run: AnimationClip;

function Awake () {

myTransform = transform; 


function Start () {

 target = GameObject.FindWithTag("Player").transform; 


function Update () {

myTransform.rotation = Quaternion.Slerp(myTransform.rotation,

Quaternion.LookRotation(target.position - myTransform.position), rotationSpeed*Time.deltaTime);

myTransform.position += myTransform.forward * moveSpeed * Time.deltaTime;


The easiest solution if you want/have to keep your hit script in OnTrigger[whatever] would probably be to attach an empty game object with only a trigger collider to your enemy. Just make sure the trigger is slightly bigger than your regular collider used for physics collision.