local _TransparentIsActive = false function onUse() TransparentChange() end function TransparentChange() -- If it's transparent, change to opaque if _TransparentIsActive == true then local offset = Vector2.__new(0, 0) -- Specify the material name and change the UV vci.assets._ALL_SetMaterialTextureOffsetFromName("TransparentMaterial", offset) print("opaque") end -- If it's opaque, change to transparent if _TransparentIsActive == false then local offset = Vector2.__new(0.5, 0.5) -- Specify the material name and change the UV vci.assets._ALL_SetMaterialTextureOffsetFromName("TransparentMaterial", offset) print("Transparent") end -- Flip the state _TransparentIsActive = not(_TransparentIsActive) end