Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In game shop

CraigMackCraigMack Posts: 27Member

I have created a small shop in my game using tables, from

My game is where, the user collects money from the infinite runner game, which then they can use to purchase another playable character. I want to make it so, when the character has been purchased once, the user can no longer buy the same player again.
And when the player has been bought it changes into a selection, where the user can choose which player to play with

Buy now code:


Im new to tables and not sure how they work. I just need to find out how to only purchase a player once and not multiple times and when the player has been purchased it changes into a selection where the user can select any player they have purchased.

Best Answer


  • dustingriffiedustingriffie Posts: 57Member

    And to make it so they can no longer purchase, put your WHOLE purchase function in a rule that says if newAttribute = 0 then allow them to purchase. If it is set to one, nothing will work and that is what you want.

Sign In or Register to comment.