How do i script this?

So i am currently making an obby and i am working on a skip a stage button, i can make it so when it is clicked it skips a stage but i am not sure how i can do that only if the user buys the dev product for it. So how can i do that?

Thank you in advance!

It’s quite simple to do that, the first thing you should do is learn about the ProcessReceipt callback and how it works for Dev products, which you can do so here

https://developer.roblox.com/en-us/api-reference/callback/MarketplaceService/ProcessReceipt

In there you will notice that they made a table containing all the functions for each Dev product, you basically do like that for your Skip stage id and in the function, just make it move the player to the next stage

1 Like

I mean you should of done more research then just posting to forum

2 Likes