Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

What's wrong with this dev. product?

Asked by 10 years ago

The walkspeed, I bought it and it didn't work how could I fix it?

01local plr = script.Parent.Parent.Parent.Parent.Parent
02local link = game:GetService("MarketplaceService")
03deb = 0
04 
05 
06script.Parent.MouseButton1Click:connect(function()
07local marketId = 21255472
08link:PromptProductPurchase(plr,marketId)
09link.ProcessReceipt = function(receiptInfo)
10if Enum.ProductPurchaseDecision.PurchaseGranted and receiptInfo.PlayerId == plr.userId then
11if deb == 0 then
12deb = 1
13local Playerwalkspeed = 30 --This is what's wrong
14wait(1)
15deb = 0
16end
17end
18end
19end)

1 answer

Log in to vote
0
Answered by
TopDev 0
10 years ago

Here you go! I changed line 1 & 13

If it works, please select my answer as the correct answer. Thanks!

01local plr = game.Players.LocalPlayer
02local link = game:GetService("MarketplaceService")
03deb = 0
04 
05 
06script.Parent.MouseButton1Click:connect(function()
07local marketId = 21255472
08link:PromptProductPurchase(plr,marketId)
09link.ProcessReceipt = function(receiptInfo)
10if Enum.ProductPurchaseDecision.PurchaseGranted and receiptInfo.PlayerId == plr.userId then
11if deb == 0 then
12deb = 1
13plr.Character.Humanoid.WalkSpeed = 30
14wait(1)
15deb = 0
16end
17end
18end
19end)
0
Thanks but, it isn't working, when you click on the GUi button it won't show the market place buying thing. iiCasual 20 — 10y
Ad

Answer this question