local Subitem = vci.assets.GetTransform("Subitem") local Subitem2 = vci.assets.GetTransform("Subitem2") function updateAll() -- time [0,1] local time = 0.5 * math.sin(os.time()) + 0.5 local rotate = Quaternion.identity Subitem.SetRotation(Quaternion.Lerp(rotate, Subitem2.GetRotation(), time)); end