generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Making a Game Pass Take Immediate Effect

Previous Thread :: Next Thread 
timothyrulze is not online. timothyrulze
Joined: 18 Nov 2008
Total Posts: 746
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 is not online. 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
timothyrulze is not online. timothyrulze
Joined: 18 Nov 2008
Total Posts: 746
14 Jun 2013 11:07 AM
Thanks a bunch.
Report Abuse
timothyrulze is not online. timothyrulze
Joined: 18 Nov 2008
Total Posts: 746
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 is not online. kingmatt2
Joined: 20 Aug 2011
Total Posts: 6494
14 Jun 2013 11:34 AM
if bought an id == 11

dah Firq?
Report Abuse
digpoe is not online. 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
timothyrulze is not online. timothyrulze
Joined: 18 Nov 2008
Total Posts: 746
15 Jun 2013 10:25 AM
Nevermind, I got it working.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image