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

How do you make my click block gamepass script work?

I made a block that if you pressed it there would be a purchase prompt. It didn't work though. A while back it worked but now it doesn't. The script:

local CLICK_BLOCK = script.Parent
local ITEM_ID = 11844188

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

Click.MouseClick:connect(function(p)
game:GetService("MarketplaceService"):PromptPurchase(p,ITEM_ID)
end)

1 answer

✓ Accepted answer

Click.MouseClick:connect(function(p)

"Click" is not defined, or at least not in the script you have shown us. Also you should capitalise the "c" in ":connect", as it is deprecated.

2 comments

0

wdym by not defined

0

oh nvm

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