title: ROBLOX Kill command to kill specified player
body: <p>I want to make a command that would kill a player you specify..
  Let's say I type: kill/Paul. Now I want to kill the player with the name Paul.</p>
  <p>This is my command Script:</p>
  <pre class="lang-lua prettyprint-override"><code>local player = ...
      
  game.Players.PlayerAdded:connect(function(player) --this gets the player that connected
      player.Chatted:connect(function(message) --this function executes when the player type into chat
      --commands are here
          if player.Name == &quot;TominoCZ&quot; or player.Name == &quot;nathancain&quot; or player.Name == &quot;block100000&quot; then
              if message == &quot;kill/me&quot; then
                  player.Character.Head:remove()
              end
          
              if message == &quot;ff/me&quot; then
                  if player.Character:findFirstChild(&quot;ForceField&quot;) then
                      player.Character.ForceField:Destroy()
                  end
              
                  Instance.new(&quot;ForceField&quot;).Parent = player.Character
              end
              
              if message == &quot;unff/me&quot; then 
                  if player.Character:findFirstChild(&quot;ForceField&quot;) then
                      player.Character.ForceField:Destroy()
                  end
              end
          end
      end)
  end)
  </code></pre>
  <p>Now you can see that I already have a command that will kill the play that executed it.</p>
  <p>But how can I kill a different player by specifying the player's name after the &quot;kill/&quot;?</p>
  <p>This command script might look too long or not too pro, but atleast I know and understand what it does.</p>
  <p>So any ideas?</p>