local item = vci.assets.GetSubItem("Cube") local dist = item.AttachableDistance print("AttachableDistance: "..dist) print("Bones") local bones = item.AttachableHumanBodyBones for key,value in ipairs(bones) do print(key .. " : " .. value) end function update() if vci.me.GetButtonInput(1) then print("Attach") item.AttachToAvatar() end if vci.me.GetButtonInput(2) then print("Detach") item.DetachFromAvatar() end end vci.StartCoroutine( coroutine.create( function() while true do local isAttached = item.IsAttached if isAttached then print("Attached") else print("Not attached") end sleep(1) end end ) ) function sleep(sec) local t0 = os.time() + sec while os.time() < t0 do coroutine.yield() end end