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

How do you make my click block gamepass script work?

Asked by 4 years ago

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

Log in to vote
0
Answered by
KingDomas 153
4 years ago

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.

0
wdym by not defined sealzrcool 6 — 4y
0
oh nvm sealzrcool 6 — 4y
Ad

Answer this question