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

How do I make a walk speed gamepass button?

How do I make a walk speed gamepass button? I've tried every youtube video and nothing is working. Please help me! :)

1 answer

Yoy could use UserOwnsGamePassAsync!

local plr = game.Players.LocalPlayer
script.Parent.MouseButton1Click:Connect(
    function()
        local plr = game.Players.LocalPlayer
        if game:GetService("MarketplaceService"):UserOwnsGamePassAsync(plr.UserId, 1743777) then
            plr.CharacterAdded:Connect(
                function()
                    wait()
                    Character:FindFirstChild("Humanoid").WalkSpeed = 200 -- Change this to what walkspeed you want, default is 16.
                end
            )
        end
    end
)

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