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

(Why removed?)Bonus walkspeed gamepass doesn't work? [closed]

Asked by 8 years ago
Edited 6 years ago

This question already has an answer here:

Gamepass double health not working?

One of the old questions I posted prior to knowing anything. Since it's reported like this I cannot delete it

0
It appears you mistyped walkspeed, capitals matter with properties. This might not be your issue, but that is an issue. Take a look at the humanoid and look at the walkspeed again. :) Azmidium 388 — 8y
0
@jmanrock123 How did I mistype walkspeed? Do you mean that in line 9, the w should be capitalized? iamnoamesa 674 — 8y
0
Take a look at the walkspeed property, I said nothing about spelling. I said you mistyped because of the capitals. The property has to be spelled exactly the same as what it looks like in the Humanoid. Azmidium 388 — 8y
0
its Character.Humanoid.WalkSpeed Teeter11 281 — 8y

Marked as Duplicate by Azmidium, TheHospitalDev, koolkid8099, and Prioxis

This question has been asked before, and already has an answer. If those answers do not fully address your question, then please ask a new question here.

Why was this question closed?

1 answer

Log in to vote
-2
Answered by 8 years ago

@Best Developer @jmanrock123 Is this correct then? It still does not work :/

local AssetID = 195872245
local MarketplaceService = game:GetService("MarketplaceService")

MarketplaceService.PromptPurchaseFinished:connect(function(Player, ID, isPurchased)
    while true do
    if not isPurchased then return end 
    if ID == AssetID then
        if Player.Character ~= nil then
        local WalkSpeed = Player.Character.Humanoid.WalkSpeed
            WalkSpeed = 100
        end
    end
end
end)
Ad