setAlpha

--This function is executed when the player clicks on the block
local function clickblock(event)
    local playerid=event.eventobjid--Click on the player's mini number of the block
    local uiid="6997615793455979871"--Interface ID
	local elementid="6997615793455979871_1"--Component ID
	local alpha=99--transparency
    --Set component transparency
    Customui:setAlpha(playerid, uiid, elementid, alpha)
end
ScriptSupportEvent:registerEvent([=[Player.ClickBlock]=], clickblock)