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

Dev product Owned?

Asked by 8 years ago

When player buys this or already did buy it has to be come owned and then cannot buy it anymore, but its not working.. Its in a gui button. Can someone help me?

local productId = 25553578
local player = game.Players.LocalPlayer

script.Parent.MouseButton1Click:connect(function()
    Game:GetService("MarketplaceService"):PromptProductPurchase(player, productId)
end)

if player.productId then
    script.Parent.Text = "Owned"
else
    script.Parent.Text = "Double Tires (x10)"

end
0
Make it a gamepass? User#5978 25 — 8y
0
Ì can't, I already have them full. minetrackmania 186 — 8y

Answer this question