So I am using a tycoon kit called Zeds tycoon kit, I am trying to make a gamepass button that will allow you to purchase a special robux only dropper. Whenever I test out the button, a prompt pops up that says “Item is not currently for sale” And the gamepass is already on sale, so I’m a bit confused.
Here’s a video to show what’s happening.
If anybody can help me fix this please let me know.
Perhaps the example ID did not change it or is incorrect, the script that should be in the model should be something like this:
local Players = game:GetService("Players")
local MarketplaceService = game:GetService("MarketplaceService")
local GamePassId = 0
script.Parent.Touched:Connect(function(hit)
if Players:GetPlayerFromCharacter(hit.Parent) then
local Player = Players:GetPlayerFromCharacter(hit.Parent)
MarketplaceService:PromptGamePassPurchase(Player,GamePassId)
end
end)
MarketplaceService.PromptGamePassPurchaseFinished:Connect(function()
-- Code --
end)