Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

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

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

✓ Accepted answer

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

6 comments

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?

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]

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

0

alright

0

it works! thanks!

0

Np man

This discussion is preserved as it was. New answers, comments, and votes are closed.