|
| 25 Jan 2017 12:48 PM |
| Hey guys! So I was trying to figure out how to make a prompt come up and ask if they want a game-pass when someone without my VIP game-pass tried to enter it. I looked everywhere, and couldn't find anything! Please help! Thanks ;D |
|
|
| Report Abuse |
|
|
|
| 25 Jan 2017 01:00 PM |
| http://wiki.roblox.com/index.php?title=API:Class/MarketplaceService/PromptPurchase |
|
|
| Report Abuse |
|
|
|
| 25 Jan 2017 01:25 PM |
| Thanks that helped a bit, but I need a way for it to activate when someone touches the door. |
|
|
| Report Abuse |
|
|
| |
|
leo1457
|
  |
| Joined: 01 May 2014 |
| Total Posts: 6921 |
|
|
| 26 Jan 2017 09:18 AM |
plr = game.Players.LocalPlayer
script.Parent.Touched(function() game:GetService("MarketplaceService"):PromptPurchase(plr, GamepassId) end)
r+://553352969r+://553353047 siggies r+://561265896 |
|
|
| Report Abuse |
|
|
leo1457
|
  |
| Joined: 01 May 2014 |
| Total Posts: 6921 |
|
|
| 26 Jan 2017 09:23 AM |
wait did it wrong
plr = game.Players.LocalPlayer
script.Parent.Touched:connect(function() game:GetService("MarketplaceService"):PromptPurchase(plr, GamepassId) end)
r+://553352969r+://553353047 siggies r+://561265896 |
|
|
| Report Abuse |
|
|