Walkspeed gamepass not giving the player extra speed?
Asked by
6 years ago Edited 6 years ago
This walkspeed gamepass is not giving the player extra speed if owned. Here's my script:
02 | game.Players.PlayerAdded:connect( function (player) |
03 | local function isAuthenticated(player) |
04 | return game:GetService( "GamePassService" ):PlayerHasPass(player, passId) |
06 | print ( "i think it works" ) |
07 | if isAuthenticated(player) then |
08 | repeat wait() until player.Character.Humanoid |
09 | player.Character.Humanoid.WalkSpeed = 24 |
10 | print ( "it does work!" ) |
It prints "i think it works" but it doesn't print ("it does work")
Also, as an extra, how could I make it so that the player can buy the gamepass in game? Thanks.