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: Table Insert

Previous Thread :: Next Thread 
Nhelp is not online. 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
FreeScriptMaker is not online. FreeScriptMaker
Joined: 29 Nov 2013
Total Posts: 2275
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 is not online. 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
FreeScriptMaker is not online. FreeScriptMaker
Joined: 29 Nov 2013
Total Posts: 2275
01 Jan 2014 05:46 AM
No I don't know what you mean sorry.
Report Abuse
Nhelp is not online. 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 is not online. Nhelp
Joined: 05 Aug 2011
Total Posts: 11557
01 Jan 2014 06:11 AM
b1
Report Abuse
Nhelp is not online. Nhelp
Joined: 05 Aug 2011
Total Posts: 11557
01 Jan 2014 06:49 AM
help
Report Abuse
BenMck is not online. BenMck
Joined: 31 Jul 2012
Total Posts: 3652
01 Jan 2014 07:13 AM
Bump
Report Abuse
Trioxide is not online. Trioxide
Joined: 29 Mar 2011
Total Posts: 32902
01 Jan 2014 07:28 AM
>/871Rz9y

Not a pastebin.
Report Abuse
BenMck is not online. BenMck
Joined: 31 Jul 2012
Total Posts: 3652
01 Jan 2014 07:33 AM
Bump
Report Abuse
Nhelp is not online. Nhelp
Joined: 05 Aug 2011
Total Posts: 11557
01 Jan 2014 07:38 AM
@trioxide
imgur
Report Abuse
BenMck is not online. BenMck
Joined: 31 Jul 2012
Total Posts: 3652
01 Jan 2014 07:58 AM
:p
Report Abuse
BenMck is not online. BenMck
Joined: 31 Jul 2012
Total Posts: 3652
01 Jan 2014 08:00 AM
Bump I say!
Report Abuse
ZirutoHellfire is not online. ZirutoHellfire
Joined: 16 Aug 2012
Total Posts: 4647
01 Jan 2014 08:03 AM
ashk lillyy
Report Abuse
BenMck is not online. BenMck
Joined: 31 Jul 2012
Total Posts: 3652
01 Jan 2014 09:38 AM
:p
Report Abuse
kungfuman32 is not online. kungfuman32
Joined: 12 Dec 2008
Total Posts: 9172
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 is not online. 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
kungfuman32 is not online. kungfuman32
Joined: 12 Dec 2008
Total Posts: 9172
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 is not online. BenMck
Joined: 31 Jul 2012
Total Posts: 3652
01 Jan 2014 10:23 AM
-_-_
Report Abuse
Nhelp is not online. 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
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