How do I make it to where a item takes money and gives it to a player that presses a button?

I am trying to make a RNG game with special items that can take money and other things, and I need help with the code/gadgets to make an Item get the number of money then take it from someone, and then gives the money to a player that uses the button to activate it?

1 Like

hey @AbezzTheBoi just wire a vending machine to a button

Button-vending machine
Vending machine, item used for purchase: cash

1 Like

not alloweed
Button → relay random player → Itemgranter (-1 money)
Same button → item granter give money to target

2 Likes

How do I make it take the exact number of money that have?

just set the item needed amount in the vending machine to the price u want

Ooohgood question.

I always forget how to do this :sob:

please read their request before answering. this is not what they are looking for.

Trigger loop → Increment counter
Trigger loop → -1 cash till zero

Trigger loop --decrement counter till zero
Trigger loop +1 chas to target

fair enough. just remember to read the newest post before answering, as the question changes a lot

1 Like

oh he reworded this request that’s why I’m confused with what u were saying

1 Like

I am way too unintelligent to understand, please simplify it down for me (and others who will use this in the future)

No problem. I may need a couple minutes to send screenshots

On one item granter do this:


On another do this for another player:

And this on a iim

1 Like

that’s not what he wants he wants what @Epi320 is making

2 Likes

what is an “iim”? I am confused

I think he means the item granter

Welp I just woke up so my brain is not fully functioning.

1 Like

Wrong.
IIM is inventroy item manager
:person_facepalming:

2 Likes

How do I wire it up to a button?

Click wires and drag the wire to the little green dots on the device.

3 Likes

I think I have made it wrong :frowning:

Can you please send some screenshots