What is wrong with this scirpt. I really need help. The only error i see in serverconsoul is
"doAcceptPurchase success from ypcall is true reason is nil"
--Speed Upgrades
local s1 = 20996735
local s2 = 20984745
local s3 = 20984749
local s4 = 20984753
local s5 = 20984757
local s6 = 20984761
local s7 = 20984769
--Health Upgrades
local h1 = 20984772
local h2 = 20996932
local h3 = 20984771
local Market = game:GetService("MarketplaceService")
Market.PromptProductPurchaseFinished:connect(function(Id,userId,Purchased)
local Player;
for i,v in pairs(game.Players:GetChildren()) do
if v.userId==userId then
Player=v
end
end
if Purchased and Player then
local Char=Player.Character
local Hum=Char.Humanoid
if Id==s1 then
Hum.WalkSpeed=Hum.WalkSpeed+2
elseif Id==s2 then
Hum.WalkSpeed=Hum.WalkSpeed+5
elseif Id==s3 then
Hum.WalkSpeed=Hum.WalkSpeed+10
elseif Id==s4 then
Hum.WalkSpeed=Hum.WalkSpeed+20
elseif Id==s5 then
Hum.WalkSpeed=Hum.WalkSpeed+30
elseif Id==s6 then
Hum.WalkSpeed=Hum.WalkSpeed+50
elseif Id==s7 then
Hum.WalkSpeed=Hum.WalkSpeed+120
elseif Id==h1 then
Hum.MaxHealth=Hum.MaxHealth+100
Hum.Health=Hum.MaxHealth
elseif Id==h2 then
Hum.MaxHealth=Hum.MaxHealth+250
Hum.Health=Hum.MaxHealth
elseif Id==h3 then
Hum.MaxHealth=Hum.MaxHealth+5000
Hum.Health=Hum.MaxHealth
end
end
end)

1 comment
I did you retarded seman