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
|
  |
| 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
|
  |
| Joined: 14 May 2010 |
| Total Posts: 110 |
|
| |
|
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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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 |
|
|