I have a CharacterAdded
script. I assume it's something wrong with the syntax, though, I'm unsure. What have I done wrong, can anyone give me some insight?
game.Players.PlayerAdded:Connect(function(plr) plr.CharacterAdded:Wait(function(char) char.Humanoid.WalkSpeed = 30 end) end)
Just set char to plr.Character or plr.CharacterAdded:Wait()
game.Players.PlayerAdded:Connect(function(plr) local char = plr.Character or plr.CharacterAdded:Wait() char.Humanoid.WalkSpeed = 30 end)
game.Players.PlayerAdded:Connect(function(player) player.CharacterAdded:Connect(function(character) character.Humanoid.WalkSpeed = 30 end) end)