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

Something Wrong With Walkspeed Gamepass... Anyone know why?

Here is my script, I don't see much wrong with it. Does anyone know why this might not be working?

game.Players.PlayerAdded:connect(function(player)
	player.CharacterAdded:connect(function(character)
		if game:GetService("GamePassService"):PlayerHasPass(player, 4583498) then
			character:WaitForChild("Humanoid").WalkSpeed = 55
		end
	end)
end)

Makes 0 sense, should be working...

1 answer

✓ Accepted answer

I've had this issue recently, it was fixed when I switched gamepassservice to marketplaceservice. The script should be fixed if you have it like this:

game:GetService("Players").PlayerAdded:Connect(function(Player)
	if MarketplaceService:UserOwnsGamePassAsync(Player.UserId, 4583498) then
		Player.CharacterAdded:Connect(function(Character)
			Character:WaitForChild("Humanoid").WalkSpeed = 55
		end)
	end
end)

3 comments

0

I'll try this, thanks Sir. If it works I'll verify this answer.

0

It would be better to only connect this event if they have the game pass rather than checking each time.

0

I agree. Let me edit the response.

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