Players are able to purchase gamepasses mutiple times

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?

2 Likes

It is a developer product. When it prompted the purchase it also said ‘Want to buy the Product…’

2 Likes

This is not a gamepass, are you sure it’s a gamepass?
Can you show code?
It seems like a product.

2 Likes

Did you make it as a developer product?

2 Likes

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 gamepass

When it prompted the purchase it said ‘Want to buy the product…’

That is weird because it is a gamepass

Are you sure you refer to that gamepass?

Yeah I’m reffering to the right gamepass

1 Like

I have never seen such a glitch before. It may be a Roblox glitch that will pass by itself. Just give it some time

2 Likes

Does it actually cost you 1 robux everytime you confirm? And maybe worth to check your gamepass pending sales to verify the issue.

Yeah it takes away 1 robux everytime I purchase it this bug is stealing money

Then as @XDvvvDX said this might be a glitch. But I believed this is something that need to be reported in platform feedback.

1 Like

If you can purchase it multiple times, then its a developer product. Developer products can be bought multiple times.

It is not a developer product
picture:

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.

I tried doing it with 30 robux but it still prompts the gamepass

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”

1 Like

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:

1 Like