local id = 4426173
script.Parent.ClickDetector.MouseClick:Connect(function(player)
if game.MarketplaceService:PlayerOwnsAsset(player,id) then
local gui = game.ServerStorage.GUI.GPGui:Clone()
gui.Parent = player.PlayerGui
else
game:GetService("MarketplaceService"):PromptGamePassPurchase(player,id)
end
end)
This is supposed to check if the player owns the gamepass and if they don't it will prompt them but it keeps prompting me in studio even if I own it.
