title: Roblox bad argument #2 to 'remove' (number expected, got string)
body: <p>Hi im doing a ROBLOX game but my code shows an error </p>
  
  <pre><code>players = require(workspace.Players1)
  button = script.Parent
  player = script.Parent.Parent.Parent.Parent.Parent.Name
  
  function onMouseButton1Down()
      button.Parent.Visible = false
      table.remove(players,player)
      workspace.Cage1.door.Players.Value = workspace.Cage1.door.Players.Value - 1
  end
  
  button.MouseButton1Down:connect(onMouseButton1Down)
  </code></pre>
  
  <p>error: bad argument #2 to 'remove' (number expected, got string)</p>
  
  <p>do anyone knows how to fix it plz?</p>
  
  <p>sorry if im not good at english.</p>