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

How do i make a 2x Cash gamepass for my tycoon?

Hey! So i have made a new tycoon but when it comes to the gamepass 2x cash that i wanted to add for this game i cant really understand how i would give out the 2x... i know how to make a gamepass and connect it to a boolvalue.

1 comment

0

Can you publish the script where you add the money?

1 answer

If you can connect it to a bool, then that is great. First, you want to check if the bool is set to true or not. If it is set to true, then double the amount, and if not, just add the amount.

local Amount = 10
if HasPass.Value == true then
	game.Players["robrex01"].leaderstats.Cash.Value = 	game.Players["robrex01"].leaderstats.Cash.Value + (Amount * 2)
else
game.Players["robrex01"].leaderstats.Cash.Value = game.Players["robrex01"].leaderstats.Cash.Value + (Amount)
end

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