local framevalue = vci.me.Time.TotalSeconds local framestart = 0 local sub = vci.assets.GetTransform("Sub") local pointA = Vector3.__new(0,1,0)--Point A local pointB = Vector3.__new(0,1,0)--Point B local pointnow =Vector3.zero local moveflag = 0 local distance = 0.01 --Stops when the distance is shorter than this function updateAll() if moveflag==1 then framevalue = (vci.me.Time.TotalSeconds-framestart)/4 --Takes 4 seconds to move --Move from pointA to pointB in N seconds, using interpolation pointnow = Vector3.Lerp(pointA,pointB,framevalue) sub.SetLocalPosition(pointnow) if Vector3.Magnitude(sub.GetLocalPosition()-pointB)