Scripting Helpers is winding down operations and is now read-only. More info→
Log in to vote

One part, where when you click on it, it asks you to buy a t-shirt ?

Asked by 2 years ago

Hi people, I'm here to ask, how to make that when we click on a share, it asks us to buy a t-shirt, for one of my game roblox ? I ask it here seen that on youtube and internet, there is not asser of tuto to make what I want to do on roblox studio, if someone of you answer me a question, I would have all your respect! Ciao !


Sorry to be a bummer, but this isn't a request site! There's some really simple tutorials and the Roblox API website too. 2Loos 168 — 2y

1 answer

Log in to vote
Answered by 2 years ago
Edited 2 years ago

This can be done using a script and running MarketplaceService:PromptPurchase()

local mps = game:GetService('MarketplaceService') -- using to prompt a purchase
local id = 7403020516 -- change this to your t shirt id (make sure it's public)
local cd = script.Parent.ClickDetector -- change this to the location of your clickdetector (in part)

cd.MouseClick:Connect(function(p) -- player clicks
    mps:PromptPurchase(p, id)


This is perfect! Upvoted :D 2Loos 168 — 2y
Good enough. SuperPuiu 497 — 2y

Answer this question