Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 5 years ago
Edited 5 years ago

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

Log in to vote
0
Answered by 5 years ago

THANKS THAT WORKED!!!!!!!!

0
Accept the answer of his then.... mixgingengerina10 223 — 5y
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 bella_boopy 13 — 5y
Ad

Answer this question