Nhelp
|
  |
| Joined: 05 Aug 2011 |
| Total Posts: 11557 |
|
|
| 01 Jan 2014 05:34 AM |
ADMINS = { ply1 = 'http://www.roblox.com/asset/?id=90565373', ply2 = 'http://www.roblox.com/asset/?id=90565373', ply3 = 'http://www.roblox.com/asset/?id=90565373' }
So I have this table, and I'm trying to make a function who introduces the player who joined into the table, if they are in the group.
I've got this so far, but it seems not to be working:
game.Players.PlayerAdded:connect(function(plyryolo) if plyryolo:IsInGroup(72043)then table.insert(ADMINS, plyryolo.Name.."='http://www.roblox.com/asset/?id=139891574'") end end) |
|
|
| Report Abuse |
|
|
|
| 01 Jan 2014 05:37 AM |
ADMINS = { ply1 = 'http://www.roblox.com/asset/?id=90565373', ply2 = 'http://www.roblox.com/asset/?id=90565373', ply3 = 'http://www.roblox.com/asset/?id=90565373' }
game.Players.PlayerAdded:connect(function(plyryolo) if plyryolo:IsInGroup(72043)then admins[plyryolo.Name:lower()] = "http://www.roblox.com/asset/?id=139891574" end end) |
|
|
| Report Abuse |
|
|
Nhelp
|
  |
| Joined: 05 Aug 2011 |
| Total Posts: 11557 |
|
|
| 01 Jan 2014 05:43 AM |
That helps a little, but I will explain to you the whole thing:
I'm planning to make a custom leaderboards who will give all JC members the icon in game next to their name.
I just need to figure out a way which works before the player list updates, if you know what I mean. |
|
|
| Report Abuse |
|
|
|
| 01 Jan 2014 05:46 AM |
| No I don't know what you mean sorry. |
|
|
| Report Abuse |
|
|
Nhelp
|
  |
| Joined: 05 Aug 2011 |
| Total Posts: 11557 |
|
|
| 01 Jan 2014 05:49 AM |
Hope this helps out a bit:
/871Rz9y
I have the leaderboard script. I just need to add a function who adds players to the ADMINS table. |
|
|
| Report Abuse |
|
|
Nhelp
|
  |
| Joined: 05 Aug 2011 |
| Total Posts: 11557 |
|
| |
|
Nhelp
|
  |
| Joined: 05 Aug 2011 |
| Total Posts: 11557 |
|
| |
|
BenMck
|
  |
| Joined: 31 Jul 2012 |
| Total Posts: 3652 |
|
| |
|
Trioxide
|
  |
| Joined: 29 Mar 2011 |
| Total Posts: 32902 |
|
| |
|
BenMck
|
  |
| Joined: 31 Jul 2012 |
| Total Posts: 3652 |
|
| |
|
Nhelp
|
  |
| Joined: 05 Aug 2011 |
| Total Posts: 11557 |
|
| |
|
BenMck
|
  |
| Joined: 31 Jul 2012 |
| Total Posts: 3652 |
|
| |
|
BenMck
|
  |
| Joined: 31 Jul 2012 |
| Total Posts: 3652 |
|
| |
|
| |
|
BenMck
|
  |
| Joined: 31 Jul 2012 |
| Total Posts: 3652 |
|
| |
|
|
| 01 Jan 2014 09:43 AM |
Admins = {'Player1','Player2','Player3'}
game.Players.PlayerAdded:connect(function(newPlayer) if newPlayer:IsInGroup(1337) then table.insert(Admins,newPlayer.Name) end end)
--[[You only need the player's name, nothing else.]] |
|
|
| Report Abuse |
|
|
BenMck
|
  |
| Joined: 31 Jul 2012 |
| Total Posts: 3652 |
|
|
| 01 Jan 2014 09:53 AM |
@Above
That'll just add the name, not the asset id |
|
|
| Report Abuse |
|
|
|
| 01 Jan 2014 10:07 AM |
Then I don't see what you're trying to do. Getting the asset ID it useless because all you need is the name.
If you don't understand that, then I'm afraid I can't help you. |
|
|
| Report Abuse |
|
|
BenMck
|
  |
| Joined: 31 Jul 2012 |
| Total Posts: 3652 |
|
| |
|
Nhelp
|
  |
| Joined: 05 Aug 2011 |
| Total Posts: 11557 |
|
|
| 01 Jan 2014 11:53 AM |
| kung, I need the asset ID too, believe me. |
|
|
| Report Abuse |
|
|