local item = vci.assets.GetTransform("Cube") vci.StartCoroutine( coroutine.create( function() while true do local isAttached = item.IsAttached if isAttached then print("装着しています") else print("装着していません") end sleep(1) end end ) ) function sleep(sec) local t0 = os.time() + sec while os.time() < t0 do coroutine.yield() end end