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
10 years ago

This is what I tryed.

function OnPurchased(2312)
then game.workspace.DPDoor.cancollide = false
end
end

(Sorry if I am a scripting noob)

2 answers

Log in to vote
0
Answered by
3rdblox 30
10 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 10 years ago

It should be

script.Parent.Touched:connect(function (hit)

        game:GetService("NAME"):PromptProductPurchase(player,ID)
    end
end)

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 — 10y
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 — 10y

Answer this question