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
|
  |
| Joined: 09 Feb 2013 |
| Total Posts: 679 |
|
| |
|
Scriptury
|
  |
| Joined: 21 Aug 2013 |
| Total Posts: 220 |
|
| |
|
GFXdylan
|
  |
| Joined: 09 Feb 2013 |
| Total Posts: 679 |
|
|
| 11 Mar 2014 12:31 PM |
Who are you? c;
hailchickens |
|
|
| Report Abuse |
|
|
Scriptury
|
  |
| Joined: 21 Aug 2013 |
| Total Posts: 220 |
|
| |
|
GFXdylan
|
  |
| Joined: 09 Feb 2013 |
| Total Posts: 679 |
|
| |
|
Scriptury
|
  |
| Joined: 21 Aug 2013 |
| Total Posts: 220 |
|
| |
|