UGC Limited Not Prompting

Hi everyone, I need some urgent help.

I am trying to set up a UGC limited event and for some reason can’t get the UGC to prompt when using :PromptPurchase(). I am entering the correct ID as displayed in the url of the limited listing but cannot get the item to show up on my screen at all (or display an error in the output). Are there specific settings I need to enable? We have the UGC location set as the game’s place ID. Any help is greatly appreciated!

Could you send the script, so we can see if there’s any errors with it? There may be other errors.

This is the part that is relevant but I will also say I ran this with my player object as the player just in the console and it also did not do anything.


	game:GetService("MarketplaceService"):PromptPurchase(
		sender,
		assetId
	)

I’ll have to check it out, can you send the asset id so I can see if I’m running into the same error as you?

Is this the only script? If not, please send the other scripts. If this is, can you send the full script

The script is not relevant as running the code I sent above in the command line of the server console is not working. The actual claiming of the rewards is fine, it is prompting the UGC that is not working for me.

For example running the following also does not work:


	game:GetService("MarketplaceService"):PromptPurchase(
		game.Players.CadenDevelops,
		132874471556079
	)

Keep in mind it is a test ugc and not one we are actually using. ^^

1 Like

Thank you, I will test this when I get the chance .

You probably have to add a bit of a wait after the player is added so they can load and the purchase can actually be received by the player. Also make sure it’s a server script.

hey there, make sure this is in a server script, if you are trying to run it locally, just use a remote event and pass the ugc id (player gets sent automatically)

the reason why it didnt work in console while testing is the same reason, you were most likely on the client. if you want to change from client to the server while testing;
click play (to start testing) → click test on the topbar → click ‘Current: Client’
that should switch you to the server

hope this helps !!

edit: also make sure the id is correct, read any errors in console for information