title: Roblox Why can't I get Players.LocalPlayer.Character in game
body: <p>I have been following many tutorials that use:</p>
  
  <pre><code>game.Players.LocalPlayer.Character
  </code></pre>
  
  <p>However every time I try to run this I get an error saying:</p>
  
  <blockquote>
    <p>Players.icrann.PlayerScripts.Script:2: attempt to index field 'Character' (a nil value)</p>
  </blockquote>
  
  <p>I am trying to use this code to find the HumanoidRootPart so that I can check the position of the player. <code>game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart")</code></p>
  
  <p>And also enable the player to run, even if I try use scripts from the toolbox it still wont work. <code>game.Players.LocalPlayer.Character:WaitForChild("Humanoid").WalkSpeed = 25</code></p>
  
  <p>In every case it brings up the same error.
  I also included a screenshot of the Players folder in the Explorer.</p>
  
  <p><a href="https://i.stack.imgur.com/WFvLY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WFvLY.png" alt="Explorer"></a></p>
  
  <p>Thank's in advance for any help.</p>