--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"-- The interface ID of the component to be rotated
local elementid="6986982063319417057_1"-- ID of the component to be rotated
local rotate=90--The number of degrees to rotate (clockwise)
--Rotate the element to the player
Customui:rotateElement(playerid, uiid, elementid, rotate)
end
ScriptSupportEvent:registerEvent([=[Player.ClickBlock]=],clickblock)