Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

why is it not prompting me the Game Pass when I click the image button it knows that I clicked it?

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

1

You're simply missing the t in Prompt, should be PromptGamePassPurchase

0

yes but its say in output 19:07:58.736 - PromtGamePassPurchase is not a valid member of MarketplaceService "MarketplaceService"

1

Now you've missed the p. It should be what I said above :)

1

Always check the spelling :)

1 answer

it's spelled PromptGamepassPurchase not PromGamePassPurchase

This discussion is preserved as it was. New answers, comments, and votes are closed.