Hello I made a gui in my game that you have to press and it prompts you a gamepass but the issue is that it prompts the gamepass even after purchasing it
Video:
Can someone tell me how to fix this?
Hello I made a gui in my game that you have to press and it prompts you a gamepass but the issue is that it prompts the gamepass even after purchasing it
Video:
It is a developer product. When it prompted the purchase it also said ‘Want to buy the Product…’
This is not a gamepass, are you sure it’s a gamepass?
Can you show code?
It seems like a product.
Did you make it as a developer product?
This is the code for the gui:
script.Parent.MouseButton1Click:Connect(function()
if game.Players.LocalPlayer.Muted.Value ~= true then
game.ReplicatedStorage.ClickSound:Play()
end
local haspass = false
local succes, err = pcall(function()
haspass = game:GetService("MarketplaceService"):UserOwnsGamePassAsync(game.Players.LocalPlayer.UserId,10978563)
end)
if haspass then
print("player owns the gamepass")
else
marketplace:PromptGamePassPurchase(game.Players.LocalPlayer,10978563)
end
end)
yeah it is a gamepass
Are you sure you refer to that gamepass?
Yeah I’m reffering to the right gamepass
I have never seen such a glitch before. It may be a Roblox glitch that will pass by itself. Just give it some time
Does it actually cost you 1 robux everytime you confirm? And maybe worth to check your gamepass pending sales to verify the issue.
Then as @XDvvvDX said this might be a glitch. But I believed this is something that need to be reported in platform feedback.
If you can purchase it multiple times, then its a developer product. Developer products can be bought multiple times.
Hmm, thats wierd. Never seen anything like this before. Can you try kicking the price up and testing it inside studio? My suspision is that it is the price because its so low.
Yea is a Developer product you can’t purchase the same gamepass again except if you had deleted it from your inventory or it isn’t?
In my script i have put a print statement to detect if the player already owns the gamepass but i have to purchase the gamepass 3 - 4 times before it detects that the player already owns the gamepass and starts printing “player owns the gamepass”
The dev hub says that UserOwnsGamePassAsync Has catching behavior and saves whether they own it upon first joining the server, so that may be why it’s calling over and over again, So that could be it: