I’m trying to make a system where when you buy an item (clothing item) you get in-game cash from it similar to the giftbux system in the game PLS DONATE
2 Likes
local amount = 69
local marketservice = game:GetService("MarketPlaceService")
local function bough(player)
player.leaderstats.Currency.Value += amount
end
marketservice.PromptPurchaseFinished:Connect(function(player, assetId, purchased)
if purchased then
bought(player)
end
end)
3 Likes
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.