Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

What would the script be to be able to deposit / withdraw money?

Asked by 9 years ago

Hello, can someone tell me what the script would be to be able to deposit and withdraw money, I have made the ATM model. The script also has to be so people can't steal money from other people. That way if someone else uses the ATM afterwards they can withdraw /deposit their money. Please help. I'm not asking for someone to do the work, I'm simply asking what coding I would put into the script

1 answer

Log in to vote
1
Answered by
LostPast 253 Moderation Voter
9 years ago

You should put a value in the players leaderboard called money in bank and access that as the players money. When you use the ATM you should check which player is interacting with the ATM probabaly using a click detector. If you are using filtering you can make it only seen client side. Then subtract any amount or add any amount to a second leaderboard stat under the name of something like money being held using a GUI.

Hope this helps!

Ad

Answer this question