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
 

Re: Please help?

Previous Thread :: Next Thread 
XanderConway is not online. XanderConway
Joined: 06 Jun 2013
Total Posts: 1037
21 Jun 2016 08:39 PM
I made this script to make a Dev Product give me a set amount of points once someone buys it , I copied this on two other scripts and changed the devproductid and the amount of points but only one of these dev products works.

local MarketplaceService = game:GetService('MarketplaceService')
local devproductid = 35441407 -- 75 Points

MarketplaceService.ProcessReceipt = function(receiptInfo)
for i, player in ipairs(game.Players:GetChildren()) do
if player.userId == receiptInfo.PlayerId then
if receiptInfo.ProductId == devproductid then

-- give them points
player.leaderstats.Points.Value = player.leaderstats.Points.Value + 300
end
end
end
return Enum.ProductPurchaseDecision.PurchaseGranted
end

What could be the problem also there is no output.
Report Abuse
XanderConway is not online. XanderConway
Joined: 06 Jun 2013
Total Posts: 1037
21 Jun 2016 08:45 PM
b
Report Abuse
XanderConway is not online. XanderConway
Joined: 06 Jun 2013
Total Posts: 1037
21 Jun 2016 08:54 PM
b2
Report Abuse
XanderConway is not online. XanderConway
Joined: 06 Jun 2013
Total Posts: 1037
21 Jun 2016 09:10 PM
b3
Report Abuse
XanderConway is not online. XanderConway
Joined: 06 Jun 2013
Total Posts: 1037
21 Jun 2016 09:25 PM
b4
Report Abuse
XanderConway is not online. XanderConway
Joined: 06 Jun 2013
Total Posts: 1037
21 Jun 2016 09:39 PM
b5
Report Abuse
XanderConway is not online. XanderConway
Joined: 06 Jun 2013
Total Posts: 1037
21 Jun 2016 10:10 PM
b6
Report Abuse
XanderConway is not online. XanderConway
Joined: 06 Jun 2013
Total Posts: 1037
21 Jun 2016 11:10 PM
b7
Report Abuse
brack4712 is not online. brack4712
Joined: 07 Mar 2009
Total Posts: 243
21 Jun 2016 11:11 PM
sounds like a headache.
Report Abuse
XanderConway is not online. XanderConway
Joined: 06 Jun 2013
Total Posts: 1037
21 Jun 2016 11:12 PM
It is terrible, it's pissing me off tbh
Report Abuse
brack4712 is not online. brack4712
Joined: 07 Mar 2009
Total Posts: 243
21 Jun 2016 11:14 PM
i have an idea, its a workaround, its kinda sketchy, but hey, it will do the job right? so who cares..

After the user is prompted to purchase start a loop for about meh, 60 or so seconds. if they purchase it in that window, have the script give the points and destroy itself. if they dont, have it destroy itself and dont give the points.
Report Abuse
XanderConway is not online. XanderConway
Joined: 06 Jun 2013
Total Posts: 1037
21 Jun 2016 11:15 PM
I'm a little confused do you mind giving me an example?
Report Abuse
brack4712 is not online. brack4712
Joined: 07 Mar 2009
Total Posts: 243
21 Jun 2016 11:21 PM
ohhh i see what you are doing. just use playerownsasset

more info here: http://wiki.roblox.com/index.php?title=API:Class/MarketplaceService/PlayerOwnsAsset
Report Abuse
iJacobness is not online. iJacobness
Joined: 20 Jan 2014
Total Posts: 4944
21 Jun 2016 11:22 PM
cant use playerownsasset with a developer product


r+://393244197r+://393244224r+://393244262
Report Abuse
XanderConway is not online. XanderConway
Joined: 06 Jun 2013
Total Posts: 1037
21 Jun 2016 11:22 PM
Awesome, thanks so much.
Report Abuse
XanderConway is not online. XanderConway
Joined: 06 Jun 2013
Total Posts: 1037
21 Jun 2016 11:23 PM
@ija dang, that sucks.
Report Abuse
brack4712 is not online. brack4712
Joined: 07 Mar 2009
Total Posts: 243
21 Jun 2016 11:24 PM
@ija, are you sure? i think i have used it before with dev products.
Report Abuse
XanderConway is not online. XanderConway
Joined: 06 Jun 2013
Total Posts: 1037
21 Jun 2016 11:29 PM
Yeah I don't think that will work either :/
Report Abuse
XanderConway is not online. XanderConway
Joined: 06 Jun 2013
Total Posts: 1037
21 Jun 2016 11:36 PM
b8
Report Abuse
XanderConway is not online. XanderConway
Joined: 06 Jun 2013
Total Posts: 1037
22 Jun 2016 12:47 AM
b9
Report Abuse
Speedy12016 is not online. Speedy12016
Joined: 10 Apr 2016
Total Posts: 37
22 Jun 2016 12:52 AM
Hi Conway,

My advice for you is trying to rewrite the script and look for other errors that you might have put in,

Maybe it won't work because one product has one perticular output and the other needs too have a
different one.

Please reply back if this helps,

Speedy12016
Report Abuse
XanderConway is not online. XanderConway
Joined: 06 Jun 2013
Total Posts: 1037
22 Jun 2016 06:23 PM
I tried, that's not the problem
Report Abuse
Speedy12016 is not online. Speedy12016
Joined: 10 Apr 2016
Total Posts: 37
23 Jun 2016 12:26 AM
sorry I thought it was, sorry that I couldn't help you! :C
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