when i press the item in the gui it only worked once and now doesnt work code:
on inventory click:
if inventory name of player's current inventory is "&cWeapons":
cancel event
if clicked slot is 10:
if player's balance is less than 50:
send "&cYou do not have enough money to buy this" to player
else:
remove 50 from player's balance
give player iron sword
send "&aBought Iron Sword for $50" to player
on inventory click:
if inventory name of player's current inventory is "&cWeapons":
cancel event
if clicked slot is 10:
if player's balance is less than 50:
send "&cYou do not have enough money to buy this" to player
else:
remove 50 from player's balance
give player iron sword
send "&aBought Iron Sword for $50" to player