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 » Scripting Helpers
Home Search
 

Re: Making a table of players

Previous Thread :: Next Thread 
Celt62 is not online. Celt62
Joined: 14 May 2010
Total Posts: 110
28 Sep 2014 08:11 AM
So I'm making a Script for my FPS game, and I need to construct a table of players which updates itself when people come and go. How would I do this?
Report Abuse
Nyxis is not online. Nyxis
Joined: 15 Nov 2012
Total Posts: 3374
28 Sep 2014 08:14 AM
Players = {}

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

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


a seal walked into a club
Report Abuse
Celt62 is not online. Celt62
Joined: 14 May 2010
Total Posts: 110
28 Sep 2014 08:16 AM
Thanks, Nyxis
Report Abuse
Nyxis is not online. Nyxis
Joined: 15 Nov 2012
Total Posts: 3374
28 Sep 2014 08:18 AM
expected hate because I assumed skul twisted everyone's perspective on those who left. but w/e

yw, idk if that will work properly or naw


a seal walked into a club
Report Abuse
Celt62 is not online. Celt62
Joined: 14 May 2010
Total Posts: 110
28 Sep 2014 08:37 AM
You've done no wrong to me. Starlite is probably dead anyway, I see no reason to hate those who jumped before they were pushed. Also, I need to give people their stuff as they spawn into the maps and also need an armoury system to work alongside this. Could you help there, too?
Report Abuse
Nyxis is not online. Nyxis
Joined: 15 Nov 2012
Total Posts: 3374
28 Sep 2014 08:51 AM
Yeah I talk to Cros a lot on Steam. He keeps me posted.

And um.. your knowledge of scripting is rather limited. These are semi-large projects that I don't really have the time to _really_ help with.

I guess the tool giving portion would be in a CharacterAdded event. How you distribute the tools, or when? That would be up to you.
The armory though.. um, not sure what you mean. Are you referring to something like at Alena where the weapon drawer slides upwards?


a seal walked into a club
Report Abuse
Celt62 is not online. Celt62
Joined: 14 May 2010
Total Posts: 110
28 Sep 2014 08:54 AM
It's not so much the physical item I need; more the actual buying system itself. Though it would preferably be in a physical object as opposed to a GUI.
Report Abuse
Nyxis is not online. Nyxis
Joined: 15 Nov 2012
Total Posts: 3374
28 Sep 2014 08:56 AM
Well, you can look the shop here (I think it's there at least):

http://www.roblox.com/Starlite-Corporation-Mining-Base-Alena-FREE-place?id=159731134


a seal walked into a club
Report Abuse
Celt62 is not online. Celt62
Joined: 14 May 2010
Total Posts: 110
28 Sep 2014 09:36 AM
The shops don't seem to show the Permanent/Single purchase GUI once I clikc a button /:
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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