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 !
roblidi01
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) end)
Sources: https://developer.roblox.com/en-us/api-reference/event/ClickDetector/MouseClick https://developer.roblox.com/en-us/api-reference/function/MarketplaceService/PromptPurchase