Cancel MarketPlaceService Prompt

As in MarketPlaceServices, There are methods such as PromptPurchase and PromptGamePassPurchase but is there anyway to Cancel the prompts?

Somehow PLS DONATE has achieved this, But How? We can cancel a prompt by clicking “esc” on our keyboard or clicking the cancel button but there is NO WAY to “force” keypress or click via roblox luau

If the method was a function then we could Disconnect it but it is a method, can we do this with corescripts or doing something with core ui?

Please let me know, Thank you

I don’t understand what you mean when you say Pls Donate can stop the prompt purchase

If we prompt purchase in pls donate, and the player has changed the gamepass price, then it will automatically cancel the purchase like it removed the purchase ui from screen

CoreUI cannot be changed nor accessed, most likely internal Roblox systems detect when a change has been made to the price and immediately cancel the purchase.

No, It’s not that roblox itself detects the price change, the pls donate game does it itself, As I’ve done myself too, after price change, it didn’t cancel for me

Try firing it twice as it could be once to open the UI then another time to close it?

That doesn’t work!

Thanks for everyone’s replies and suggestions, But I have figured out how they do it

Would you like to share with the class? :eyes:

1 Like

you can just

game:GetService("GuiService"):InspectPlayerFromUserId(game.Players.LocalPlayer.UserId)
game:GetService("GuiService"):CloseInspectMenu()

there will be no gatekeeping on my watch :3

edit: this method can be used to close ANY coregui prompt btw

6 Likes

Ah. That makes a lot of sense. Thanks for being a real team player :muscle:. The world is better for this kind of relationship between programmers

2 Likes

bro came in as a saviour for everyone :3

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.