Hello,Im new scripting and i was making and gamepass GUI,I was going good no errors But i forgot how to make the promote ;-;
I mean like when u click the buy button a promotion of the gamepass Pops up,i forgot how to do it…
Can some one pls tell me how to?
edit:pls dont make it too hard to understand bc im mexican and i script on english soo its very hard to me to script
local id = -- Put in your gamepassid here.
local plr = game.Players.LocalPlayer
script.Parent.MouseButton1Click:Connect(function()
game:GetService("MarketplaceService"):PromptGamePassPurchase(plr.UserId,id)
end)
local MarketplaceService = game:GetService("MarketplaceService")
local Player = game:GetService("Players").LocalPlayer
local passId = 00000 -- gamepass ID
script.Parent.MouseButton1Click:Connect(function()
MarketplaceService:PromptGamePassPurchase(Player,passId)
end)