Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Prompt purchase on part click not working?

local id = 13073982
local clickDetector = script.Parent.ClickDetector

clickDetector.MouseClick:Connect(function(Player)
    game:GetService("MarketplaceService"):PromptGamePassPurchase(Player, id)
end)

1 comment

0

It should be :PromptPurchase() that what i use at least

1 answer

When you are putting the script in, make sure that it's located inside of the click part alongside the click detector like this having the click detector and Script inside of the ClickPart. I tested the script on mine and it works fine.

ClickPart -- located as script.Parent in the script

Clickdetector

Script

2 comments

0

It already is

0

Try publishing the game or a test game with the same script and objects and trying to see if the purchase prompt pops up in game instead of studio.

This discussion is preserved as it was. New answers, comments, and votes are closed.