-
What do you want to achieve?
I want to fix this issue, where my gamepass is turning into a whole different developer product. -
What is the issue?
The issue is, I put my gamepass ID, in the gamepass ID, for the button, but when I click the button, the same gamepass pops up as a “Product” with a different price to it.
-
What solutions have you tried so far?
If tried, searching for different gamepass ID’s, etc, but found nothing.
The code for this button script is:
local Resources = require(game:GetService("ReplicatedStorage"):WaitForChild("Resources"))
local PseudoInstance = Resources:LoadLibrary("PseudoInstance")
local Enumeration = Resources:LoadLibrary("Enumeration")
local Color = Resources:LoadLibrary("Color")
local player = game.Players.LocalPlayer
local ownsGamepass = game.MarketplaceService:UserOwnsGamePassAsync(player.UserId, 10913200)
local BuyRblxBC = PseudoInstance.new("RippleButton")
BuyRblxBC.Size = script.Parent.Size
BuyRblxBC.Position = script.Parent.Position
BuyRblxBC.PrimaryColor3 = Color.Teal[500]
BuyRblxBC.BorderRadius = 4
BuyRblxBC.Style = "Contained"
BuyRblxBC.Text = script.Parent.Text
BuyRblxBC.Parent = script.Parent.Parent
if ownsGamepass then
script.Parent.Visible = false
end
BuyRblxBC.OnPressed:Connect(function()
game.MarketplaceService:PromptGamePassPurchase(player, 10913200)
end)