How can i make a button cost an item? Such as an item needed to press the button.
you can js use a vending machine or wire a button to a vending machine
Vending machine, device barrier, and button.
Put button bellow barrier. Vending machine → barrier when item purchases deactivate barrier.
Zone → Player enters Zone → Run Check (Player has [ITEM]) → Activate button
Make sure the zone and button has scope set to player so that It works
is he talking about button activation or buying something from button?
My way is more like a status, if you have the status of an item, you can press the button, but if you use a vending machine, that also works.
o ok I see what he wants but I don’t think that’s possible
Place a button, checker, and item granter (if you don’t want to use a vending machine)
Set checker to check for more than one of the item required to purchase (for example, cash)
Set the item granter to grant the amount of the item you’re purchasing (for example, glass shards)
Wire button and checker: when button pressed > run check
Wire checker and item granter: check passes > grant item
A Vending Machine ; )
that’s why the vending machine was made
link the button to the vending machine with a wire, then mark the vending machine thing only go if the required item is there
I’m simply offering an easier option : D
Use what 2nd_place_guy posted. Change the settings to the item(s) you want to purchase, how much it costs, etc…