So like the wall on Pet Simulator with the buy button on the wall and you need a certain amount of coins to enter. I have everything set but the code for it. Can someone help me?
COMMUNITY QUESTION
Can someone help with a money wall like in Pet Simulator?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

14 comments
Are you trying to purchase it or getting the required coins to receive it?
i am trying to purchase it and make it disappear
Then your gonna have to something like [if value >= price then value = value - price] and [script.Parent:Destroy()] if that's true
Do you have a datastore set up? I dont know if it would be best but, i would make a datastore and create a bool value for that wall, initially its false then when its bought you'll make it true, that way it saves the players progress automatically. Then for the wall all you'll need to do is set up a script where you'll require X coins, and if player has X you remove X, and turn the barrier
^ Yeah and Datastore if you have one set up
transparent and collide off. Then also turn the bool value to true.
i tried that and it always says invalid something so could you type a good one up for me?
-1 for saying that. ^
You've been given the neccesary information to make it happen. If you have any issues with the code ill gladly help. Otherwise i think this thread is done!
i just dont know how to do it and need help
like i tried all the stuff and it has invalid lines and i just need help
i would like as much help as possible
please someone else help
https://scriptinghelpers.org/help/how-post-good-questions-answers