thanks for watching
-------------------- script: -------------------
local ProximityPrompt = script.Parent -- This tells your script where the ProximityPrompt Is
local id = 1234567890 -- Change to your Gamepass ID
local player = game.Players.LocalPlayer
local MarketplaceService = game:GetService("MarketplaceService")
ProximityPrompt.Triggered:Connect(function(player)
MarketplaceService:PromptGamePassPurchase(player,id)
end)
don't forget to like and sub