06-04-2016, 11:39 PM
Use this:
function OnPlayerRightClick(Player, BlockX, BlockY, BlockZ, BlockFace, CursorX, CursorY, CursorZ) if (BlockFace == BLOCK_FACE_NONE) then return false end local BlockType = Player:GetWorld():GetBlock(BlockX, BlockY, BlockZ) local BlockMeta = Player:GetWorld():GetBlockMeta(BlockX, BlockY, BlockZ) -- Your code end