Problem with script

When i put the Enemy AI script in my unity project (http://www.mpgh.net/forum/512-unity-udk-gamestudio-development/427244-unity-enemy-ai-health-attack-scripts-c.html) i get this error:

Assets/Script/Enemy AI.cs(30,69): error CS1061: Type UnityEngine.Transform' does not contain a definition for rotationSpeed’ and no extension method rotationSpeed' of type UnityEngine.Transform’ could be found (are you missing a using directive or an assembly reference?)

Using this line:

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

Change myTransform.rotationSpeed to myTransform.rotation. The error you’re getting is saying that the Transform object has no variable rotationSpeed (which it doesn’t).

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