--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="6986982063319417057"--Interface ID local elementid="6986982063319417057_1"--Component ID local color="0xFF0000"-- The color of the component to set --Set the color of the player's component Customui:setColor(playerid, uiid, elementid, color) end ScriptSupportEvent:registerEvent([=[Player.ClickBlock]=], clickblock)