I tried to make one by replacing the developer pass GUI, but it just broke the gui when i tried to purchase it.
the script was
local productId = 20804763 -- change to your developer product ID
local player = game.Players.LocalPlayer
script.Parent.MouseButton1Click:connect(function() --DONT CHANGE THIS
Game:GetService("MarketplaceService"):PromptProductPurchase(player, productId)
end)
how do I make it work for a gamepass and still give the server player points?

1 comment
Thanks so much!