-- The name of the SubItem game object and the argument string in GetTransform("") must match. Subitem = vci.assets.GetTransform("Subitem") angle = 0 function onUngrab() angle = angle + math.pi / 180 if angle > (2 * math.pi) then angle = 0 end print(angle) local axis = Vector3.up local rotate = Quaternion.AxisAngle(axis, angle) Subitem.SetLocalRotation(rotate) local velocity = Vector3.zero Subitem.SetVelocity(velocity) end