I made 2 scripts. They are for developer products, yet they dont give the player the speed or health when the Product is purchased. So the script must be wrong somewhere. Both scripts are in Workspace.
Game:GetService("MarketplaceService").ProcessReceipt = function(receipt)
if receipt.ProductId == 0000000 then
for i,v in pairs(game.Players:GetPlayers()) do
if v.userId == receipt.PlayerId then
v.Character.Humanoid.MaxHealth = v.Character.Humanoid.MaxHealth + 100
wait(0.1)
v.Character.Humanoid.Health = v.Character.Humanoid.MaxHealth
end
end
end
end
Script 2
Game:GetService("MarketplaceService").ProcessReceipt = function(receipt)
if receipt.ProductId == 0000000 then
for i,v in pairs(game.Players:GetPlayers()) do
if v.userId == receipt.PlayerId then
v.Character.Humanoid.WalkSpeed= v.Character.Humanoid.WalkSpeed + 5
end
end
end
end

4 comments
Do you mind please telling me how you would use it in this case.
Just edited my anser to include an example.
Am i able to add more ID's in here? copy and pasting the elseif thing and adding more id's?
Yep!