generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: table.remove

Previous Thread :: Next Thread 
OldGoldie is not online. OldGoldie
Joined: 17 Aug 2010
Total Posts: 8210
12 Apr 2015 06:04 PM
game.Players.PlayerRemoving:connect(function(p)
table.remove(ingame,p.Name)
end)

What's wrong?
Report Abuse
Septamology is not online. Septamology
Joined: 20 Jun 2013
Total Posts: 2811
12 Apr 2015 06:05 PM
ingame = {}

game.Players.PlayerRemoving:connect(function(p)
table.remove(ingame,p.Name)
end)

game.Players.PlayerAdded:connect(function(p)
table.insert(ingame,p.Name)
end)


Septamology - R$0 - Tx35,380
Report Abuse
baldo46 is not online. baldo46
Joined: 28 Jul 2008
Total Posts: 1254
12 Apr 2015 06:06 PM
Your syntax is fine, need more details.
Report Abuse
Septamology is not online. Septamology
Joined: 20 Jun 2013
Total Posts: 2811
12 Apr 2015 06:06 PM
Or, if you just want to return a table with all the players, just call game.Players:GetPlayers()


Septamology - R$0 - Tx35,380
Report Abuse
baldo46 is not online. baldo46
Joined: 28 Jul 2008
Total Posts: 1254
12 Apr 2015 06:07 PM
^^^That
Report Abuse
OldGoldie is not online. OldGoldie
Joined: 17 Aug 2010
Total Posts: 8210
12 Apr 2015 06:24 PM
So like ingame = game.Players:GetPlayers()?
Report Abuse
baldo46 is not online. baldo46
Joined: 28 Jul 2008
Total Posts: 1254
12 Apr 2015 06:26 PM
more like ingame == game.Players:GetPlayers();

Replace all instances of "ingame" with "game.Players:GetPlayers()"
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image