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

How to make a Developer Product function after purchase?

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

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.

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.

2 comments

0

I am looking for a answer about you getting a door access or at least a tool giver.

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.

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