-- Triggered when player clicks a block local function clickblock(event) local playerid = event.eventobjid -- Clicking player's ID local uiid = "6986982063319417057" -- Replace with your UI ID local elementid = "6986982063319417057_3" -- Replace with component ID local width, height = 500, 200 -- New dimensions -- Resize the specified component Customui:setSize(playerid, uiid, elementid, width, height) end ScriptSupportEvent:registerEvent([=[Player.ClickBlock]=], clickblock)