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

My speed game pass isn't working I tried to put it in ServerScriptService, Any help please?

Asked by 6 years ago
game.Players.PlayerAdded:connect(function(player)
 player.CharacterAdded:connect(function(character)
  if game.GamePassService:PlayerHasPass(player,161394440) then
   character.Humanoid.WalkSpeed = 32 
  end
 end)
end)?

0
i believe your problem is in line 2. i'm a new scripter though so i might be wrong GamingOverlord756 48 — 6y
0
alright, thanks for helping ill fix it patrikX1234 -5 — 6y

2 answers

Log in to vote
0
Answered by
JellyYn 70
6 years ago

You are using a deprecated function. It should be :Connect not :connect Also, do game:GetService("GamePassService):PlayerHasPass() And why is there a "?" at the end of the script? That also shouldn't be there, lol

If this doesn't work, sorry, because my :PlayerHasPass() hasn't been working for me either. I am just trying to help out.

Ad
Log in to vote
0
Answered by 6 years ago

I am also new here and learning but I think you may need to check the ID as if you made the gamepass recently it looks 1 number short to me. I have the same script and it works, looks fine to me so I suggest check ID number.

Answer this question