So I am making a tycoon, and I would like to make a gamepass that upon purchased, will make it so that you do not need to step on the collect cash pad to collect your money, instead, the drops will be collected when they hit the pad at the end of the conveyor. I don’t know how to make this though.
I have tried finding a youtube tutorial on it, but the only one I could find is one that told you how to make it so that the drops will auto collect for everyone, and you don’t need to buy a gamepass.
Hey there! It’s as simple as increasing the player’s cash value when the drops reach the target, so let’s assume the drops take 5 seconds to reach the target, so every 5 seconds you have to increase the value of the player’s cash.
Now this will be in a script. This script will initially be disabled. (Every script hasa property called disabled set that to true) so upon purchase of the gamepass the script gets enabled.
(Sorry am bad at explaining, feel free to ask any questions!)
The issue is, drops have different amounts of cash that are given. If I increased it by only 1 amount, they would not be getting the full amount of cash from drops dropped.
*EDIT: I’m also garbage at scripting so I don’t know how to make that
Please excuse me it’s 12am lol, one way could potentially be locating the script of the part that the drops touch to give cash, and edit it so that if the player owns the gamepass then instead of adding it to the cash balance/collector, deposit it straight to the players stats.
(This is assuming you have a bit of scripting knowledge and scripted the tycoon yourself)
Sure I can give some code, what code do you want to see, the code that handles the droppers or the purchase code. I’m only asking because I have no idea how to do this.
Hey there, you mentioned that the drops are having different cash amounts, so I assume you have already made the drops script, we would be able to further assist you if you could show us the drops script.
If you have some kind of cash register, bank, or anything, show us that, maybe you could make auto collect from basic collect script if you know what i mean.