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
 

Does ProcessReceipt need a debounce?

Previous Thread :: Next Thread 
robocu3 is not online. robocu3
Joined: 13 Mar 2009
Total Posts: 6485
10 Jun 2014 09:42 PM
MS.ProcessReceipt = function(receipt)
if debounce then return end
debounce = true
PurchaseHistory:SetAsync(receipt.PlayerId,''..receipt.PlayerId..'_'..receipt.ProductId)
for index, v in pairs(PurchaseTranslations) do
if v == receipt.ProductId then
print(''..index..': '..v)
end
PointsService:AwardPoints(receipt.PlayerId, PointTranslations[index])
break
end
debounce = false
return Enum.ProductPurchaseDecision.PurchaseGranted
end

I'm not sure if this would give the player points multiple times or not.
-=Robo=-
Report Abuse
enzo90 is not online. enzo90
Joined: 25 Mar 2012
Total Posts: 7104
10 Jun 2014 09:47 PM
Yes. To make sure, check the output and make sure that it wasn't run a billion times or something.
Report Abuse
robocu3 is not online. robocu3
Joined: 13 Mar 2009
Total Posts: 6485
10 Jun 2014 09:55 PM
It was. With this, though, nothing happens.
-=Robo=-
Report Abuse
enzo90 is not online. enzo90
Joined: 25 Mar 2012
Total Posts: 7104
10 Jun 2014 09:56 PM
Try making the debounce false at first then true then false again?
Report Abuse
robocu3 is not online. robocu3
Joined: 13 Mar 2009
Total Posts: 6485
10 Jun 2014 09:59 PM
Actually. It's rewarding anyone who bought the product 10 points everytime they enter but isn't finishing processing. No error.
-=Robo=-
Report Abuse
CrazyRocker60 is not online. CrazyRocker60
Joined: 21 Nov 2011
Total Posts: 5060
10 Jun 2014 10:16 PM
y wont u let me help

-snowhawk51 qq
Report Abuse
robocu3 is not online. robocu3
Joined: 13 Mar 2009
Total Posts: 6485
10 Jun 2014 10:22 PM
It's not a matter of not helping. I learn nothing if I allow someone else to do the work for me.
-=Robo=-
Report Abuse
CrazyRocker60 is not online. CrazyRocker60
Joined: 21 Nov 2011
Total Posts: 5060
10 Jun 2014 10:22 PM
want me to teach u after

its kinda complicated with pp games to explain

-snowhawk51 qq
Report Abuse
LegendaryAccount is not online. LegendaryAccount
Joined: 02 Jun 2010
Total Posts: 13193
10 Jun 2014 10:24 PM
The purpus you said, cant you just use a gamepass because it seems like a 1 buy item
Report Abuse
robocu3 is not online. robocu3
Joined: 13 Mar 2009
Total Posts: 6485
10 Jun 2014 10:24 PM
I'm not some beginner. I know what I'm doing.
Add me on skype.
robocu.3
-=Robo=-
Report Abuse
CrazyRocker60 is not online. CrazyRocker60
Joined: 21 Nov 2011
Total Posts: 5060
10 Jun 2014 10:27 PM
Don't skype random ppl srry


-snowhawk51 qq
Report Abuse
robocu3 is not online. robocu3
Joined: 13 Mar 2009
Total Posts: 6485
10 Jun 2014 10:29 PM
Don't typically follow people offering random help to problems they know nothing about, either? Don't offer if you're not going to deliver, it's a waste of time.
-=Robo=-
Report Abuse
CrazyRocker60 is not online. CrazyRocker60
Joined: 21 Nov 2011
Total Posts: 5060
10 Jun 2014 10:31 PM
i already see where u messed up in that script
lololololol

-snowhawk51 qq
Report Abuse
robocu3 is not online. robocu3
Joined: 13 Mar 2009
Total Posts: 6485
10 Jun 2014 10:31 PM
Then please tell me what I did wrong and stop being a jerk about it. I'm not asking for a lot.
-=Robo=-
Report Abuse
robocu3 is not online. robocu3
Joined: 13 Mar 2009
Total Posts: 6485
10 Jun 2014 10:34 PM
Please? Been stuck on this for the better part of an hour trying various things. I can't depict the problem.
-=Robo=-
Report Abuse
CrazyRocker60 is not online. CrazyRocker60
Joined: 21 Nov 2011
Total Posts: 5060
10 Jun 2014 10:35 PM
1. Your working for that poxidus guy thingy

-snowhawk51 qq
Report Abuse
robocu3 is not online. robocu3
Joined: 13 Mar 2009
Total Posts: 6485
10 Jun 2014 10:38 PM
Who? That has nothing to do with the script.
My friend I've known for a couple of years paid me 1.2k to code a couple of things for him, this is one of them. I had thought it worked before but it rewards points upon entrance, giving me the idea it isn't returning the enum and I can't figure out why. If you're not gonna help get off the post.
-=Robo=-
Report Abuse
CrazyRocker60 is not online. CrazyRocker60
Joined: 21 Nov 2011
Total Posts: 5060
10 Jun 2014 10:39 PM
wanna just do a join.me and u can watch my screen and learn?

-snowhawk51 qq
Report Abuse
CrazyRocker60 is not online. CrazyRocker60
Joined: 21 Nov 2011
Total Posts: 5060
10 Jun 2014 10:42 PM
http://quickscreenshare.com/share?t=GU3wT3wGsTqTkTTYU&n=Pierce%20Townsend&s=0

-snowhawk51 qq
Report Abuse
CrazyRocker60 is not online. CrazyRocker60
Joined: 21 Nov 2011
Total Posts: 5060
10 Jun 2014 10:43 PM
nvm not that link

-snowhawk51 qq
Report Abuse
CrazyRocker60 is not online. CrazyRocker60
Joined: 21 Nov 2011
Total Posts: 5060
10 Jun 2014 10:43 PM
um idk

-snowhawk51 qq
Report Abuse
CrazyRocker60 is not online. CrazyRocker60
Joined: 21 Nov 2011
Total Posts: 5060
10 Jun 2014 10:45 PM
https://join.me/717-560-851https://join.me/717-560-851

-snowhawk51 qq
Report Abuse
CrazyRocker60 is not online. CrazyRocker60
Joined: 21 Nov 2011
Total Posts: 5060
10 Jun 2014 10:47 PM
https://join.me/717-560-851

-snowhawk51 qq
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