ProximityPrompts

Hey! I’m currently new to these, so Im working with my script for a gamepass purchase.

Heres the error:
image
My script is:


local gamePassId = 5249762

Proximity.TriggeredEnded:Connect(function(player)

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

end)`


Any ideas?

Try replacing “TriggeredEnded” with “Triggered”!

1 Like

I’d advise you review the API and information on proximity prompts, good luck! Proximity Prompts | Documentation - Roblox Creator Hub

1 Like