I was trying to make a walkspeed gamepass, but it did not work for some reason, is it because of FE on?
Here is the script [it's in ServerScriptService]
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
if game.MarketplaceService:PlayerOwnsAsset(player, 4865295) then
character.Humanoid.Walkspeed = 40
end
end)
end)
please someon help!

4 comments
it did not work
You should use the player's ID not the player instance on line 5.
it should say "game:GetService("MarketplaceService"):UserOwnsGamePassAsync(player.UserId, 4865295)"
I edited the code how did luachef said, I've forgot about it...