Continue in your same robux system file and add the following:
for each selection, try to add code so you check if you have enough robux in your account and if you do have enough robux, you can buy the item, if not, then print out:
print(f”You only have {robux} robux remaining. Therefore you cannot purchase {item_name} for {price} robux.”)
here is the format for a selection:
if selection == “1”:
___if _____:
______robux -= 100
______print(f”You purchased a Hat. You have {robux} robux remaining.”)
___else: # tell the user they dont have enough robux
_____
If you have any questions, you can email me at ddjapri@ayclogic.com!!