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

Tycoon - how do i remove the money collecting button and get money straight?

Asked by 5 years ago

Hi. im using zednov's tycoon kit and i would want to get rid of the "Collect Cash" button and get money when the drops get collected.

1 answer

Log in to vote
1
Answered by 5 years ago

OK so their is a part inside of each tycoons purchase handler where it says "Money.Value = Money.Value + Part.Cash.Value" You would change this to change the players money value inside of the server storage under "game.ServerStorage.PlayerName.Value" so it would go to game.ServerStorage.PlayerMoney[script.Parent.Owner.Value.Name].Value = game.ServerStorage.PlayerMoney[script.Parent.Owner.Value.Name].Value + Part.Cash.Value

0
Sorry, i didnt understand anything at all. well i think i didnt understand anything. but if i understood right then i create a script to server storage and then in that script i put game.ServerStorage.PlayerMoney[script.Parent.Owner.Value.Name].Value = game.ServerStorage.PlayerMoney[script.Parent.Owner.Value.Name].Value + Part.Cash.Value? User#27783 0 — 5y
0
Not exactly. Inside of each tycoon their is a script called "PurchaseHandler". At 34 lines down is a line with Money.Value = Money.Value + Part.Cash.Value you change this to affect the players cash stat in server storage which I just realised can be easily done if you change the locam money at line 8 to local Money = game.ServerStorage.PlayerMoney[script.Parent.Owner.Value.Name] Protogen_Dev 268 — 5y
0
If that doesn't get it I would better explain it on discord as stack edit don't work for me on pc. So if you can't get it working add me on ?Ikel The Umbreon?#6217 if you have discord Protogen_Dev 268 — 5y
0
alright User#27783 0 — 5y
View all comments (2 more)
0
it works! thanks! User#27783 0 — 5y
0
Np man Protogen_Dev 268 — 5y
Ad

Answer this question