Need a help with a script to a GUI

Hello! I’m Charmy.

I’m trying to create a GUI that will offer to buy clothes whose ID was entered earlier in the window (well, you know, like redeem a code in games, etc.). And it will be purchased not in my game, in Roblox

I don’t know how to explain it right…

1 Like

To prompt a user with a purchase dialogue use MarketplaceService:PromptPurchase

game:GetService("MarketplaceService"):PromptPurchase(game.Players.LocalPlayer, 4367427794)

Change 4367427794 to any item id.

https://developer.roblox.com/en-us/api-reference/function/MarketplaceService/PromptPurchase

1 Like