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 » Scripters
Home Search
 

WTF WHY WONT THIS WORK???

Previous Thread :: Next Thread 
DesiredJourney is not online. DesiredJourney
Joined: 12 Aug 2014
Total Posts: 53
21 Nov 2016 04:59 PM
ok so i got this button that when you press it, it prompts you purchase for a gamepass in a local script.
there's this in a global script:
function MarketplaceService.ProcessReceipt(rinfo)
print('reached!')
local playerProductKey = rinfo.PlayerId .. "_:" .. rinfo.PurchaseId
if PurchaseHistory:GetAsync(playerProductKey) then
return Enum.ProductPurchaseDecision.PurchaseGranted
end
local Player = game.Players:GetPlayerByUserId(rinfo.PlayerId)
table.insert(Gamepasses, rinfo.ProductId)
print('added!')
ChangeEvent:Fire()
print('fired!')
PurchaseHistory:SetAsync(playerProductKey, true)
return Enum.ProductPurchaseDecision.PurchaseGranted
end

it won't even print "reached!"!!! why is this?? wtf it worked before why now :(
all variables are defined and there aren't any other processreceipts


Report Abuse
epicmuffinman123 is not online. epicmuffinman123
Joined: 04 Dec 2011
Total Posts: 520
21 Nov 2016 05:04 PM
idk its right but roblox wont run the script thats the problem roblox makes it so you can have a script run
Report Abuse
DesiredJourney is not online. DesiredJourney
Joined: 12 Aug 2014
Total Posts: 53
21 Nov 2016 05:06 PM
"roblox makes it so that you can have a script run"
please.. if you don't know then don't comment


Report Abuse
DesiredJourney is not online. DesiredJourney
Joined: 12 Aug 2014
Total Posts: 53
21 Nov 2016 05:14 PM
lol im suprised you guys haven't noticed i said "gamepass"


Report Abuse
C_Sharper is online. C_Sharper
Joined: 03 Oct 2011
Total Posts: 6405
21 Nov 2016 05:15 PM
Your attitude is horrendous.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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