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

How do I fix this Dev. product? (Walkspeed)

Asked by 9 years ago
local plr = game.Players.LocalPlayer
local link = game:GetService("MarketplaceService")
deb = 0


script.Parent.MouseButton1Click:connect(function()
local marketId = 21255472
link:PromptProductPurchase(plr,marketId)
link.ProcessReceipt = function(receiptInfo)
if Enum.ProductPurchaseDecision.PurchaseGranted and receiptInfo.PlayerId == plr.userId then
if deb == 0 then
deb = 1
plr.Character.Humanoid.WalkSpeed = 30
wait(1)
deb = 0
end
end
end
end)

This is for a GUI, when you click it it won't show the Purchase

0
Are there any errors in the output? gskw 1046 — 9y
0
It doesn't say there's any. iiCasual 20 — 9y

Answer this question