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
 

Issue with DevProduct script

Previous Thread :: Next Thread 
alij12 is not online. alij12
Joined: 03 Oct 2011
Total Posts: 1204
05 Jan 2017 06:43 PM
For some reason, I'm getting a couple complaints saying they're not getting their cash when they purchase it. I look through the console and it says they purchased it (it prints the [SALE]). Any ideas as to what could be the cause? Every time I test it, it works fine. I know theyre not lying since I witnessed them pay and not receive their cash.

local market = game:GetService("MarketplaceService")
local shortHand = require(game.Workspace.ModuleScripts.Shorthand)
local products = {
id44016139 = 1000,
id44016156 = 5000,
id44016171 = 10###### id44016194 = #5###### id44016325 = 50000,
id44016341 = 1000000
}

script.Parent.OnServerEvent:connect(function(plr,id)
market:PromptProductPurchase(plr,id)
print("Successfully found connection. Attempting to sell.")
end)

market.ProcessReceipt = function(info)
local player = info.PlayerId
local product = info.ProductId
print(player.." successfully triggered DevProduct.")
for i,v in pairs(game.Players:GetPlayers()) do
if v.UserId == player then
print("[SALE] "..v.Name.." purchased $"..shortHand.commas(products["id"..product]).."!")
v.ActualCash.Value = v.ActualCash.Value + products["id"..product]
return Enum.ProductPurchaseDecision.PurchaseGranted
end
end
end


Do not give up; the beginning is always the hardest part.
Report Abuse
KritikalGunzz is not online. KritikalGunzz
Joined: 10 Nov 2013
Total Posts: 1633
05 Jan 2017 06:50 PM
When you buy it while testing... Do you get your cash?

Report Abuse
alij12 is not online. alij12
Joined: 03 Oct 2011
Total Posts: 1204
05 Jan 2017 06:53 PM
Yes.


Do not give up; the beginning is always the hardest part.
Report Abuse
KritikalGunzz is not online. KritikalGunzz
Joined: 10 Nov 2013
Total Posts: 1633
05 Jan 2017 06:56 PM
Do a localserver test with 2 or more players. If you don't get your cash, search up threads with people that had the same issue.
Report Abuse
alij12 is not online. alij12
Joined: 03 Oct 2011
Total Posts: 1204
05 Jan 2017 09:26 PM
Well, Im testing in-game with well over 2 players.


Do not give up; the beginning is always the hardest part.
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