so pretty much I wan't to prompt the player the Id then I want to check if they own it after the prompt comes down, How would I do this?
local Id = script.Parent.ID.Value
local player = game.Players.LocalPlayer
function onClick()
if script.Parent.Parent.Parent.Overlay.Visible == false or script.Parent.Parent.Name == 'Item1' then
Game:GetService("MarketplaceService"):PromptPurchase(player, script.Parent.ID.Value, false, 0)
end
end
script.Parent.MouseButton1Click:connect(onClick)

1 comment
to check if they have it use PlayerOwnsAsset