Marketplace Show Gamepass is Not for Sale?
Asked by
4 years ago Edited 4 years ago
As attempt, The script Works Fine, But Fails to Market the Gamepass Sales Event for the Players.
And The Gamepass is for Sale as well.
Gamepass
Gyazo
01 | while not _G [ "GameDatabase" ] do wait() end |
02 | while not _G [ "GameDatabase" ] .ready do wait() end |
03 | local CheckBought = _G [ "GameDatabase" ] .action [ "CheckBought" ] |
05 | local player = script.Parent.Parent.Parent.Parent.Parent.Parent.Parent |
06 | local pname = player.Name |
08 | local pass_val = "PassTwoMore" |
09 | local pass_id = 7199111 |
11 | function UpdatePassInfo() |
12 | if CheckBought(pname, pass_val) then |
13 | script.Parent.BuyBtt.Visible = false |
14 | script.Parent.Bought.Visible = true |
16 | script.Parent.BuyBtt.Visible = true |
17 | script.Parent.Bought.Visible = false |
21 | _G [ "GameDatabase" ] .pinfo [ pname ] .changed.Event:connect(UpdatePassInfo) |
23 | script.Parent.BuyBtt.MouseButton 1 Click:connect( function () |
24 | game:GetService( "MarketplaceService" ):PromptPurchase(player, pass_id) |
Is there By chance, The MarketplaceService is not a supportive method now?