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

Can someone please show me a difference between the old gamepass shop to the new one?

Idk how to use playerownsgamepassasync so can someone show me the differents between old and new?

1 answer

✓ Accepted answer

This is the updated version in this example, if you own the gamepass your cash will go up 1,000.

-----------------
--- Variables ---
-----------------
local Players = game:GetService('Players')
------------------
-- Gamepass Id ---
------------------
local gp= 5113033

game.Players.PlayerAdded:Connect(function(plr)
if game:GetService("MarketplaceService"):UserOwnsGamePassAsync(plr.UserId, gp) then
	for i, player in ipairs(Players:GetPlayers()) do
local BPS = player.leaderstats.Cash
BPS.Value = BPS.Value + 1000
end
end
end)

Developer Products:

local plr = game.Players.LocalPlayer
local id = 0 -- change "0" to a developer product

script.Parent.MouseButton1Down:Connect(function)
game:GetService("MarketplaceService"):PromptProductPurchase(plr,id)
end)

-- This example is for a GUI, you'll see examples of this on tycoons--

The old version I don't know much about, but I am more familiar with the newer method. If this answers the question you had, please accept my answer. If you have questions please comment and I will get back to you as soon as possible.

4 comments

0

Do you know how to use dev products?

0

I sure do specifically what for dev products?

0

the code for dev products, i also forgot how to do it

0

Sure no problem

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