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

How to make a Developer Product function after purchase?

Asked by
daricr 0
11 years ago

This is what I tryed.

1function OnPurchased(2312)
2then game.workspace.DPDoor.cancollide = false
3end
4end

(Sorry if I am a scripting noob)

2 answers

Log in to vote
0
Answered by
3rdblox 30
11 years ago

This is off by quite a bit. There's a wiki article on developer products but it fried my brain first time I tried to learn it. I would go back to basics, start by taking free model scripts then trying to figure out how they work using the wiki to explain methods you don't understand.

Ad
Log in to vote
-2
Answered by 11 years ago

It should be

1script.Parent.Touched:connect(function (hit)
2 
3        game:GetService("NAME"):PromptProductPurchase(player,ID)
4    end
5end)

But in that, you should change things around w/ your script, because if you do mine, it won't work for yours.

0
I am looking for a answer about you getting a door access or at least a tool giver. daricr 0 — 11y
0
Oh, you can get that in a free model, just make a gamepass, go to a free model, and then enter the ID for the pass. If you want a tool giver, ask someone else. CrazyRocker60 17 — 11y

Answer this question