Zicronium
|
  |
| Joined: 01 Jun 2012 |
| Total Posts: 103 |
|
|
| 22 Jul 2015 02:51 PM |
I just need a script that makes it so when you buy a certain DevProduct you're awarded so much in game gold, simple, will pay 500R$ for that.
http://www.roblox.com/Forum/ShowPost.aspx?PostID=168455729
I tried doing that script but it won't work, if you fix that then I'll give 1kR$ instead.
First come first serve |
|
|
| Report Abuse |
|
|
| |
|
|
| 22 Jul 2015 02:52 PM |
| obviously the script I tried is more complex than the script I'm asking for since the one I already tried does multiple products |
|
|
| Report Abuse |
|
|
xLink123
|
  |
| Joined: 07 Aug 2014 |
| Total Posts: 11158 |
|
|
| 22 Jul 2015 02:53 PM |
I never used that, try this instead:
http://wiki.roblox.com/index.php?title=API:Class/MarketplaceService/PromptProductPurchaseFinished |
|
|
| Report Abuse |
|
|
Modikinz
|
  |
| Joined: 01 Dec 2014 |
| Total Posts: 11429 |
|
|
| 22 Jul 2015 02:53 PM |
by any chance are you trying to do i,v in pairs at: for i, player in ipairs(game.Players:GetPlayers()) do
or am i wrong
♔ тнє υикиσωи ѕтυffє∂ αиιмαℓ ♔ |
|
|
| Report Abuse |
|
|
xLink123
|
  |
| Joined: 07 Aug 2014 |
| Total Posts: 11158 |
|
|
| 22 Jul 2015 02:54 PM |
billylones I can help you
party me or something |
|
|
| Report Abuse |
|
|
|
| 22 Jul 2015 02:55 PM |
| @modi, in pairs and in ipairs work the same |
|
|
| Report Abuse |
|
|
SquidIy
|
  |
| Joined: 12 Jul 2014 |
| Total Posts: 27509 |
|
|
| 22 Jul 2015 02:56 PM |
I have a script made up for this already lemme make it a model.
( ͡° ͜ʖ ͡°) Siggys are too much work, like your mom | 171,063: RAP | ~SquidIy | |
|
|
| Report Abuse |
|
|
|
| 22 Jul 2015 02:57 PM |
| @squid, I'm in a party with xlink so he might be helping but if he can't I'll come back to you |
|
|
| Report Abuse |
|
|
SquidIy
|
  |
| Joined: 12 Jul 2014 |
| Total Posts: 27509 |
|
|
| 22 Jul 2015 02:58 PM |
Mine is so efficient doe :o
( ͡° ͜ʖ ͡°) Siggys are too much work, like your mom | 171,063: RAP | ~SquidIy | |
|
|
| Report Abuse |
|
|
|
| 22 Jul 2015 03:01 PM |
| yeah but I don't wanna end up paying multiple people for a one person job :U |
|
|
| Report Abuse |
|
|
SquidIy
|
  |
| Joined: 12 Jul 2014 |
| Total Posts: 27509 |
|
|
| 22 Jul 2015 03:02 PM |
I'll give it to u for free doe
( ͡° ͜ʖ ͡°) Siggys are too much work, like your mom | 171,063: RAP | ~SquidIy | |
|
|
| Report Abuse |
|
|
SquidIy
|
  |
| Joined: 12 Jul 2014 |
| Total Posts: 27509 |
|
|
| 22 Jul 2015 03:05 PM |
If studio ever launches
( ͡° ͜ʖ ͡°) Siggys are too much work, like your mom | 171,063: RAP | ~SquidIy | |
|
|
| Report Abuse |
|
|
|
| 22 Jul 2015 03:06 PM |
| ok well in that case I may as well test it :) |
|
|
| Report Abuse |
|
|
SquidIy
|
  |
| Joined: 12 Jul 2014 |
| Total Posts: 27509 |
|
|
| 22 Jul 2015 03:07 PM |
It's for a GUI, correct?
( ͡° ͜ʖ ͡°) Siggys are too much work, like your mom | 171,063: RAP | ~SquidIy | |
|
|
| Report Abuse |
|
|
| |
|
SquidIy
|
  |
| Joined: 12 Jul 2014 |
| Total Posts: 27509 |
|
|
| 22 Jul 2015 03:09 PM |
might just write u a new script rn
( ͡° ͜ʖ ͡°) Siggys are too much work, like your mom | 171,063: RAP | ~SquidIy | |
|
|
| Report Abuse |
|
|
|
| 22 Jul 2015 03:10 PM |
| as a replacement for that one I've tried already? |
|
|
| Report Abuse |
|
|
SquidIy
|
  |
| Joined: 12 Jul 2014 |
| Total Posts: 27509 |
|
|
| 22 Jul 2015 03:10 PM |
@billy ye lemme write it brb
( ͡° ͜ʖ ͡°) Siggys are too much work, like your mom | 171,063: RAP | ~SquidIy | |
|
|
| Report Abuse |
|
|
| |
|
SquidIy
|
  |
| Joined: 12 Jul 2014 |
| Total Posts: 27509 |
|
|
| 22 Jul 2015 03:27 PM |
I have a shop that goes with this script want it 2?
local MarketplaceService = Game:GetService("MarketplaceService") MarketplaceService.ProcessReceipt = function(receiptInfo) for i, player in ipairs(game.Players:GetChildren()) do if player.userId == receiptInfo.PlayerId then if receiptInfo.ProductId == 24787185 then player.leaderstats.Coins.Value = player.leaderstats.Coins.Value + 100 elseif receiptInfo.ProductId == 24787193 then player.leaderstats.Coins.Value = player.leaderstats.Coins.Value + 250 elseif receiptInfo.ProductId == 24787207 then player.leaderstats.Coins.Value = player.leaderstats.Coins.Value + 500 elseif receiptInfo.ProductId == 24787190 then player.leaderstats.Coins.Value = player.leaderstats.Coins.Value + 1000 elseif receiptInfo.ProductId == 24787202 then player.leaderstats.Coins.Value = player.leaderstats.Coins.Value + 2500 elseif receiptInfo.ProductId == 20991134 then lol = Instance.new("IntValue",player) lol.Name = "play" end end end return Enum.ProductPurchaseDecision.PurchaseGranted end
( ͡° ͜ʖ ͡°) Siggys are too much work, like your mom | 171,063: RAP | ~SquidIy | |
|
|
| Report Abuse |
|
|
SquidIy
|
  |
| Joined: 12 Jul 2014 |
| Total Posts: 27509 |
|
|
| 22 Jul 2015 03:28 PM |
and cuz yolo if ur in a group, u get bonus coins!!
a = 2518421 game.Players.PlayerAdded:connect(function(add) if add:IsInGroup(a)then add.leaderstats.Coins.Value = 100 else add.leaderstats.Coins.Value = 0 end end)
( ͡° ͜ʖ ͡°) Siggys are too much work, like your mom | 171,063: RAP | ~SquidIy | |
|
|
| Report Abuse |
|
|
|
| 22 Jul 2015 03:30 PM |
thanks :D
hmm may be able to use that group thing somehow I guess :o |
|
|
| Report Abuse |
|
|
SquidIy
|
  |
| Joined: 12 Jul 2014 |
| Total Posts: 27509 |
|
|
| 22 Jul 2015 03:31 PM |
want the shop to go with it?
( ͡° ͜ʖ ͡°) Siggys are too much work, like your mom | 171,063: RAP | ~SquidIy | |
|
|
| Report Abuse |
|
|
|
| 22 Jul 2015 03:34 PM |
| nah it's ok I got that covered but thanks anyways |
|
|
| Report Abuse |
|
|