The walkspeed, I bought it and it didn't work how could I fix it?
01 | local plr = script.Parent.Parent.Parent.Parent.Parent |
02 | local link = game:GetService( "MarketplaceService" ) |
03 | deb = 0 |
04 |
05 |
06 | script.Parent.MouseButton 1 Click:connect( function () |
07 | local marketId = 21255472 |
08 | link:PromptProductPurchase(plr,marketId) |
09 | link.ProcessReceipt = function (receiptInfo) |
10 | if Enum.ProductPurchaseDecision.PurchaseGranted and receiptInfo.PlayerId = = plr.userId then |
11 | if deb = = 0 then |
12 | deb = 1 |
13 | local Playerwalkspeed = 30 --This is what's wrong |
14 | wait( 1 ) |
15 | deb = 0 |
16 | end |
17 | end |
18 | end |
19 | end ) |
Here you go! I changed line 1 & 13
If it works, please select my answer as the correct answer. Thanks!
01 | local plr = game.Players.LocalPlayer |
02 | local link = game:GetService( "MarketplaceService" ) |
03 | deb = 0 |
04 |
05 |
06 | script.Parent.MouseButton 1 Click:connect( function () |
07 | local marketId = 21255472 |
08 | link:PromptProductPurchase(plr,marketId) |
09 | link.ProcessReceipt = function (receiptInfo) |
10 | if Enum.ProductPurchaseDecision.PurchaseGranted and receiptInfo.PlayerId = = plr.userId then |
11 | if deb = = 0 then |
12 | deb = 1 |
13 | plr.Character.Humanoid.WalkSpeed = 30 |
14 | wait( 1 ) |
15 | deb = 0 |
16 | end |
17 | end |
18 | end |
19 | end ) |