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

Gamepass Walk speed script not working? (Filtering enabled game)

My Code:

game.Players.PlayerAdded:Connect(function(player) player.CharacterAdded:Connect(function(character) if game.MarketplaceService:PlayerOwnsAsset(player,4463855) then character.Humanoid.WalkSpeed = 36

end end) end)

2 comments

0

The End bit are in different lines btw

0

Im not expert but I dont think the ends should be like that

2 answers

So, though I can't see what wrong with you script I can help you make it so that people don't ask about things like the "ends" in your script. To present your script, go to Code block at the top of the area where you type click on it, and then put your code inside the dashes, like this:

game.Players.PlayerAdded:Connect(function(player)
	player.CharacterAdded:Connect(function(character) 
		if game.MarketplaceService:PlayerOwnsAsset(player,4463855) then
			character.Humanoid.WalkSpeed = 36
		end
	end)
 end)

Hope that helped a bit, though sorry to get you excited for an answer I didn't provide.

game.Players.PlayerAdded:Connect(function(player) 
    player.CharacterAdded:Connect(function(character)
        if game:GetService("GamePassService"):PlayerHassPass(player, 4463855) then 
            character.Humanoid.WalkSpeed = 36
        end
    end)
end)

Try that, make sure it is a localscript, and preferably put it in ServerScriptService.

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