title: Roblox Studio: CharacterAdded is not a valid member of Players
body: <p>I was working on a kill-logs script that would when a person dies send data over a webhook ( plr.username has died!) But, I got stuck on an error that I can't really seem to fix '' CharacterAdded is not a valid member of Players '' on the first line of the code.</p>
  <p>What I have tried: Checking spelling to make sure nothing is miss spelled, googling/digging around dev forums.</p>
  <p>UPDATE: Started poking around the code a bit and got a new error, still can't fix it. I would need some help pretty please.</p>
  <pre><code>
  
  --start 
  local Players = game:GetService(&quot;Players&quot;)
  local HttpService = game:GetService(&quot;HttpService&quot;)
  local webhook = &quot;removed the webhook link&quot; -- webhook here
  
  game.Players.PlayerAdded.
   plr.CharacterAdded:Connect(function(character,plr)
          character:WaitForChild(&quot;Humanoid&quot;).Died:Connect(function(msg)
          local data = { --contet of data
              content = msg;
              username = plr.Name;
              avatar_url = &quot;http://www.roblox.com/Thumbs/Avatar.ashx?x=100&amp;y=100&amp;Format=Png&amp;userId=&quot;..plr.UserId
          }
          HttpService:PostAsync(webhook, HttpService:JSONEncode(data))
      end)
  end)
  
  print('nadam se da radi')
  
  -- end
  </code></pre>
  <p>I can't find out how to fix this, if anybody can help me out fast I would appreciate it!</p>