So I am making a trade script and I'm am trying to make it to where player's can click only certain slots in the gui (placing/picking up items). Unfortunately it only blocks the players from clicking the certain slots 50% of the time. This is what I have now:
if clicked raw slot is 5 or 6 or 7 or 8 or 14 or 15 or 16 or 17 or 23 or 24 or 25 or 26 or 32 or 33 or 34 or 35 or 41 or 42 or 43 or 44 or 50 or 51 or 52 or 53:
cancel event
Is there any better way of doing this? I don't see why this fails half of the time...
if clicked raw slot is 5 or 6 or 7 or 8 or 14 or 15 or 16 or 17 or 23 or 24 or 25 or 26 or 32 or 33 or 34 or 35 or 41 or 42 or 43 or 44 or 50 or 51 or 52 or 53:
cancel event
Is there any better way of doing this? I don't see why this fails half of the time...