Can anyone help me with what I'm doing wrong?
local speed = 50
game.Players.PlayedAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
if character:FindFirstChild("Humanoid") then
character.WalkSpeed = speed
else
end
end)
end)

3 comments
not working :l
I'm trying to make a walkspeed function using the events PlayerAdded and CharacterAdded
I fixed a small typo, try it now.