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

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

Asked by 6 years ago
Edited 6 years ago

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)

0
The End bit are in different lines btw doctorwhotardisman12 -5 — 6y
0
Im not expert but I dont think the ends should be like that barry21223 0 — 6y

2 answers

Log in to vote
0
Answered by 6 years ago

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.

Ad
Log in to vote
0
Answered by 6 years ago
Edited 6 years ago
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.

Answer this question