|
| 14 Jun 2013 11:03 AM |
| How do you make it so that if they use the MarketplaceService to buy it in-game, that it will detect they have it without them having to exit and return to the game? I know it's possible because alexnewtron did it with his Pairs to Pears game's Trash Pack Game Pass. |
|
|
| Report Abuse |
|
|
Desperian
|
  |
| Joined: 07 Feb 2012 |
| Total Posts: 3371 |
|
|
| 14 Jun 2013 11:04 AM |
http://wiki.roblox.com/index.php/PromptPurchaseFinished_(Event)
http://wiki.roblox.com/index.php/PlayerOwnsAsset_(Method)
|
|
|
| Report Abuse |
|
|
| |
|
|
| 14 Jun 2013 11:25 AM |
Aw man. It didn't work? I think I did it correctly. Here's my script (It gives the player 1,000 extra points when they own the Game Pass): market = game:GetSerivce("MarketplaceService") market.PromptPurchaseFinished:connect(function(player, id, bought) if bought and id == 116617818 then player.leaderstats.Points.Value = player.leaderstats.Points.Value + 1000 end end) |
|
|
| Report Abuse |
|
|
kingmatt2
|
  |
| Joined: 20 Aug 2011 |
| Total Posts: 6494 |
|
|
| 14 Jun 2013 11:34 AM |
if bought an id == 11
dah Firq? |
|
|
| Report Abuse |
|
|
digpoe
|
  |
| Joined: 02 Nov 2008 |
| Total Posts: 9092 |
|
|
| 14 Jun 2013 11:35 AM |
| It's checking if the user bought it and the ID of the item was the right ID. |
|
|
| Report Abuse |
|
|
|
| 15 Jun 2013 10:25 AM |
| Nevermind, I got it working. |
|
|
| Report Abuse |
|
|