I'm trying to create a gui with 3 buttons, and when you click on the tripwire hook the inventory should close, (for now)
When i use this exact skript for any of the empty slots it works, but when it's one of the slots with items, the skript is reloading successfully but nothing happens when I click that slot, (I know how the chest format works, (slot 1 is 0, 2 is 1, etc,)
Code:
on inventory click:
if name of player's inventory contains "&c&lGuide":
clicked slot = 11:
close player's inventory