Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Gamepass = 0 -- Your desired Gamepass ID
- local MPS = game:GetService("MarketplaceService")
- script.Parent.Touched:Connect(function(plr)
- local player = game.Players:GetPlayerFromCharacter(plr.Parent)
- if player ~= nil then
- local Character = plr.Parent
- MPS:PromptGamePassPurchase(player, Gamepass)
- end
- end)
- -- [ ^^ PROMPT GAMEPASS PURCHASE ^^ ] --
- local Bundle = 0 -- Your desired Bundle ID.
- local MPS = game:GetService("MarketplaceService")
- script.Parent.Touched:Connect(function(plr)
- local player = game.Players:GetPlayerFromCharacter(plr.Parent)
- if player ~= nil then
- local Character = plr.Parent
- MPS:PromptBundlePurchase(player, Bundle)
- end
- end)
- -- [ ^^ PROMPT BUNDLE PURCHASE ^^ ] --
- local MPS = game:GetService("MarketplaceService")
- script.Parent.Touched:Connect(function(plr)
- local player = game.Players:GetPlayerFromCharacter(plr.Parent)
- if player ~= nil then
- local Character = plr.Parent
- MPS:PromptPremiumPurchase(player)
- end
- end)
- -- [ ^^ PROMPT PREMIUM PURCHASE ^^ ] --
- local Product = 0 -- Your desired Developer Product ID
- local MPS = game:GetService("MarketplaceService")
- script.Parent.Touched:Connect(function(plr)
- local player = game.Players:GetPlayerFromCharacter(plr.Parent)
- if player ~= nil then
- local Character = plr.Parent
- MPS:PromptProductPurchase(player, Product)
- end
- end)
- -- [ ^^ PROMPT PRODUCT PURCHASE ^^ ] --
- local ID = 0 -- Your desired Sell ID
- local MPS = game:GetService("MarketplaceService")
- script.Parent.Touched:Connect(function(plr)
- local player = game.Players:GetPlayerFromCharacter(plr.Parent)
- if player ~= nil then
- local Character = plr.Parent
- MPS:PromptPurchase(player, ID)
- end
- end)
- -- [ ^^ PROMPT PURCHASE ^^ ] --
Advertisement
Add Comment
Please, Sign In to add comment