I've looked around and couldn't find anything so far. If someone could help me write the script for it that would be awesome!
-- Server local MarketPlaceService = game:GetService("MarketplaceService") MarketPlaceService.ProcessReceipt = function(receiptInfo) local userId = receiptInfo.PlayerId if receiptInfo.ProductId == 0000 then -- 100 Cash Id local Player = game.players:GetPlayerFromUserIdAsync(userId) local Cash = Player.leaderstats.Cash Cash.Value = Cash.Value + 100 end end
-- Client local Player = game.Players.LocalPlayer local ProductId = 0000 local MarketPlaceService = game:GetService("MarketplaceService") local Button = script.Parent.Button Button.MouseButton1Click:Connect(function() MarketPlaceService:PromptPurchase(ProductId) end)