How to make Gamepass Prompt Purchases with Proximity Prompts

Hey! So I just found out about this new thing called Proximity Prompts, I’m trying to create it so they can purchase a gamepass, to buy snowballs, or a go-kart.

Does anyone know how?

1 Like
Purchase Gamepass Proximity
local Proximity -- Make sure you identify local Proximity

local gamePassId = 0 -- Gamepass ID here

Proximity.TriggerEnded:Connect(function(player)

game:GetService("MarketplaceService"):PromptGamePassPurchase(player, gamePassId)

end)
4 Likes

Just use:

local ProximityPrompt -- Make sure you identify the location of the ProximityPrompt
ProximityPrompt.TriggerEnded:Connect(function(player)
	
end)

Okay thanks I’ll be sure to use this!!! (charschars)))

Wait, it says that TriggeredEnded is not a valid member of workspace.proximprax.proximityprompt

Did you identify the proximity prompt? if you didnt do
game:GetService(“ProximityPromptService”)

1 Like

I fixed it. It was a mistake I made.