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

Help! How do I get my game pass ID to work in clickable script?

I have tried suggestions from forums and message boards and am still running into the same issue.

The Game-Pass ID is 5107155 that I want to use in my game and no matter what I do or try, I cannot get the actual gamepass ID since the changeover.

This ID keeps pulling up a different thumbnail for https://www.roblox.com/library/5107155/Chaos-Canyon-Complex

Here is my script:

local CLICK_BLOCK = script.Parent
local gamePassId = 5107155

local Click = Instance.new("ClickDetector",CLICK_BLOCK)

Click.MouseClick:connect(function(UserID)
	game:GetService("MarketplaceService"):PromptPurchase(UserID, gamePassId)
end)

I am trying to make a clickable sign for the game pass.

Please help, I am new to game passes and want this to work!

Thank You.

1 answer

THANKS THAT WORKED!!!!!!!!

2 comments

0

Accept the answer of his then....

0

It is not showing me that option? I have looked every where.... All I have is EDIT/REMOVE/REPORT but I DEFINITELY ACCEPT THE ANSWER

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