hideuiview

--When the player clicks the block, execute this function
local function clickblock(event)
local uin=event.eventobjid--The mini number of the player who clicked the block
local uiid="6986982063319417057"--The interface id to be hidden
Player:hideUIView(uin,uiid)--Hide the interface for the player
end
ScriptSupportEvent:registerEvent([=[Player.ClickBlock]=],clickblock)