Hello, I was wondering if someone could help me turn my script from a gamepass script to a dev product script. I have never used dev products before, there for I don’t wanna mess with my code and screw it up badly.
local TipGamepassId = 974573221
local MarketplaceService = game:GetService("MarketplaceService")
local click = workspace.Head.ClickTip
click.MouseClick:Connect(function(player) -- look at this thing
local success, message = pcall(function()
hasPass = MarketplaceService:UserOwnsGamePassAsync(player.UserId, TipGamepassId)
end)
if hasPass == true then
print("Player has pass")
else
MarketplaceService:PromptGamePassPurchase(player, TipGamepassId)
end
end)