Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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

4 comments

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. :)

0

@jmanrock123 How did I mistype walkspeed? Do you mean that in line 9, the w should be capitalized?

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.

0

its Character.Humanoid.WalkSpeed

1 answer

@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)

This discussion is preserved as it was. New answers, comments, and votes are closed.