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

Is this the how you make a unlimited cash script?

I am trying too make a unlimited cash script can somebody help me, quickly? Heres the script:

local player = nil--Provide the player I think
local MS = game:GetService("MarketplaceService")

local Gamepass Id = 0
MS:PromptProductPurchase(player,Id)
MS.ProcessReceipt = function(receiptInfo) 
if Enum.ProductPurchaseDecision.PurchaseGranted and recieptInfo.PlayerId

== Player.userId then
	Player.leaderstats.Cash.Value = 999999
end

I know its missing a reset so it's unlimited, but I have the script that I typed

1 answer

✓ Accepted answer

i believe if you are trying to give the player infinite money the correct way to give them infinite money is by using math.huge which basically means infinite i guess. so for the infinite stats line you would instead write:

Player.leaderstats.Cash.Value = Player.leaderstats.Cash.Value + math.huge

im not 100% sure if this works or not but the stat should say INF after this code runs. thats what i got at least from tests i ran.

1 comment

0

You wouldn't even need to add anything, just set it to math.huge

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