-- When a player clicks a block, execute this function local function clickblock(event) local uin = event.eventobjid -- The player ID who clicked the block local uiid = "6986982063319417057" -- Replace with your actual UI ID Player:hideUIView(uin, uiid) -- Hide the interface for the player end -- Register event for Player.ClickBlock ScriptSupportEvent:registerEvent([=[Player.ClickBlock]=], clickblock)