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
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: FIXED DEVELOPER PRODUCT CASH SCRIPT

Previous Thread :: Next Thread 
GFXdylan is not online. GFXdylan
Joined: 09 Feb 2013
Total Posts: 679
09 Mar 2014 02:22 PM
So, i give credit to some people who have helped me, forgot names.

also, if you need a working leaderboard; http://www.roblox.com/leaderboard-item?id=149103957

how to use the developer script;
make a screengui, with a textbutton in it,
than put in it a normal script and put in the following script;


local player = script.Parent.Parent.Parent.Parent
local buyButton = script.Parent
local productId = 0000000 -- product id here
local mps = game:GetService"MarketplaceService"

function getPlayerById(id)
for i,v in pairs(game.Players:GetPlayers()) do
if v.userId == id then
return v
end
end
end

buyButton.MouseButton1Click:connect(function()
mps:PromptProductPurchase(player, productId)
end)

mps.ProcessReceipt = function(info)
local plr = getPlayerById(info.PlayerId)
if plr and plr:FindFirstChild"leaderstats" and plr.leaderstats:FindFirstChild"Points" then
plr.leaderstats.Points.Value = plr.leaderstats.Points.Value + 1000 -- where the "points" stands, put in the leaderstats name, and at the "1000" the number you want to add at the leaderstats.
end
end




-- no problem
-- gfxdylan
Report Abuse
GFXdylan is not online. GFXdylan
Joined: 09 Feb 2013
Total Posts: 679
11 Mar 2014 12:26 PM
bump
Report Abuse
Scriptury is not online. Scriptury
Joined: 21 Aug 2013
Total Posts: 220
11 Mar 2014 12:30 PM
Hi Dylan.
Report Abuse
GFXdylan is not online. GFXdylan
Joined: 09 Feb 2013
Total Posts: 679
11 Mar 2014 12:31 PM
Who are you?
c;


hailchickens
Report Abuse
Scriptury is not online. Scriptury
Joined: 21 Aug 2013
Total Posts: 220
11 Mar 2014 12:32 PM
Riles.
Report Abuse
GFXdylan is not online. GFXdylan
Joined: 09 Feb 2013
Total Posts: 679
11 Mar 2014 12:33 PM
hm..
idk?
Report Abuse
Scriptury is not online. Scriptury
Joined: 21 Aug 2013
Total Posts: 220
11 Mar 2014 12:34 PM
:)
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