[Java]Transform.lookat makes any object rock madly

Hey all, I am currently trying to get my enemy to constantly look at the player like they did in the TornadoTwins tutorial and my script is;

#pragma strict
var player : Transform;

function Update () 
{
	transform.LookAt(player);
}

I know this is right because I did it before and it worked fine, however now its like whatever object I attach this script to freaks out and the object rocks backwards and forwards and its moving so fast that its transparent. I have tested it with multiple models from and outside of unity. Please help and sorry I can’t explain it better. All I want is a simple lookAt script.

ehm try making a new scene and create two cubes one with “player” name then place both objects on a plane so you can look at the positions of them then put the script in the other object and Play it. see if it works?