Help with I tween error!

Hey, my script says that best overload for the method 'ITween.moveTo(UnityEngine.GameObject,System.Collections.Hashtable)' is not compatible with the arguement list '(UnityEngine.Transform,Boo.Lang.Hash)'.

My script is:

It is supposed to loop my i tween

//object to be tweened
var tweenObject : Transform;

function Start ()
{
    //begins loop
    Tweens();
}

function Tweens ()
{
    // whatever happens
    iTween.moveTo( tweenObject, { "x" : 10 , "y" : 10 , "z" : 10 , "time" : 2 , "onComplete" : "looptween" });
}

function looptween ()
{
    //repeats loop
    Tweens();
}

iTween needs a GameObject not a Transform ;)

Make tweenObject a GameObject and you should be good!

Try using tweenObject.transform instead of just tweenObject as the first parameter in the function. I'm guessing then it'll be able to implicitly pass a boo hash for the second parameter without any problem