Ok, your not supposed to ask for stuff without showing script but ok.
06 | game.StarterGui.ResetPlayerGuiOnSpawn = false |
07 | old_fog = game.Lighting.FogStart |
08 | local MarketplaceService = game:GetService( "MarketplaceService" ) |
10 | function getPlayerFromId(id) |
11 | for i,v in pairs (game.Players:GetChildren()) do |
12 | if v.userId = = id then |
19 | MarketplaceService.ProcessReceipt = function (receiptInfo) |
20 | local productId = receiptInfo.ProductId |
21 | local playerId = receiptInfo.PlayerId |
22 | local player = getPlayerFromId(playerId) |
29 | if productId = = 50738839 then |
30 | local cashmoney = game.ServerStorage.PlayerMoney:FindFirstChild(player.Name) |
32 | cashmoney.Value = cashmoney.Value + 5000 |
34 | elseif productId = = 50738869 then |
35 | local cashmoney = game.ServerStorage.PlayerMoney:FindFirstChild(player.Name) |
37 | cashmoney.Value = cashmoney.Value + 10000 |
39 | elseif productId = = 50738905 then |
40 | local cashmoney = game.ServerStorage.PlayerMoney:FindFirstChild(player.Name) |
42 | cashmoney.Value = cashmoney.Value + 20000 |
44 | elseif productId = = 50738942 then |
45 | local cashmoney = game.ServerStorage.PlayerMoney:FindFirstChild(player.Name) |
47 | cashmoney.Value = cashmoney.Value + 30000 |
49 | elseif productId = = 50738971 then |
50 | local cashmoney = game.ServerStorage.PlayerMoney:FindFirstChild(player.Name) |
52 | cashmoney.Value = cashmoney.Value + 40000 |
54 | elseif productId = = 50739005 then |
55 | local cashmoney = game.ServerStorage.PlayerMoney:FindFirstChild(player.Name) |
57 | cashmoney.Value = cashmoney.Value + 99999999999 |
68 | elseif productId = = 52085900 then |
69 | local char = player.Character |
71 | local human = char:FindFirstChild( "Humanoid" ) |
73 | human.WalkSpeed = human.WalkSpeed + 15 |
81 | elseif productId = = 52086187 then |
82 | local cashmoney = game.ServerStorage.MoneyStorage:FindFirstChild(player.Name) |
83 | local char = player.Character |
84 | char.Humanoid.MaxHealth = char.Humanoid.MaxHealth + 30 |
86 | char.Humanoid.Health = char.Humanoid.MaxHealth |
93 | elseif productId = = 52086215 then |
94 | game.ServerStorage.Rainbow:Clone().Parent = player.Backpack |
98 | return Enum.ProductPurchaseDecision.PurchaseGranted |
Closed as Not Constructive by Link150
This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.
Why was this question closed?