Ok. So, I have this Developer product for my game, and I'm using it to buy a house. I DON'T want the game to remember they bought it, so they have to buy it again if they rejoin (That's why I don't need Data Store). Here's my script so far.
local CD = script.Parent.Main.ClickDetector --Click Detector (Don't need to change)
id = 19334843 --Developer Product ID
CD.MouseClick:connect(function(plr)
if script.Parent.Owner.Value == "Nobody" then
game:GetService("MarketplaceService"):PromptProductPurchase(plr, id) --Makes them buy it
local MarketplaceService = game:GetService("MarketplaceService")
MarketplaceService.PromptPurchaseFinished:connect(function(plr, id, isPurchased)
if isPurchased then
script.Parent.Owner.Value = plr.Name
end
end)
end
end)
It doesn't work. Any tips?

1 comment
I, so far, have only cleaned the code up a little bit, but don't see a real cause for this problem. Does the output not say anything?