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

Running speed not working?

Asked by
FiredDusk 1466 Moderation Voter
9 years ago

When a player buys a gamepass, they don't have a walkspeed of 21.

local passId = 278389550 -- change this to your game pass ID.

function isAuthenticated(player)
    return game:GetService("GamePassService"):PlayerHasPass(player, passId)
end

game.Players.PlayerAdded:connect(function(plr)
    if isAuthenticated(plr) then
        plr.Character.Humanoid.WalkSpeed = 21
    end
end)

Answer this question