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

Is this the how you make a unlimited cash script?

Asked by 5 years ago

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

Log in to vote
0
Answered by 5 years ago

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.

0
You wouldn't even need to add anything, just set it to math.huge SteamG00B 1633 — 5y
Ad

Answer this question