local id = 12618468
script.Parent.MouseButton1Click:Connect(function()
game:GetService("MarketplaceService"):PromGamePassPurchase(game.Players.LocalPlayer,id)
end)
in output it says 19:07:58.736 - PromtGamePassPurchase is not a valid member of MarketplaceService "MarketplaceService"

4 comments
You're simply missing the t in Prompt, should be PromptGamePassPurchase
yes but its say in output 19:07:58.736 - PromtGamePassPurchase is not a valid member of MarketplaceService "MarketplaceService"
Now you've missed the p. It should be what I said above :)
Always check the spelling :)