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 
BenMck is not online. BenMck
Joined: 31 Jul 2012
Total Posts: 3652
22 Aug 2014 07:48 PM
Lets say, I've got a table named 'Admins' so,

Admins = {}

But I want people to be added to this table whenever a value of a String changes;
ie; When someone touches a brick, the Value, named 'Owner' is changed to that persons Username, how do I add their username to the 'Admins' Table?

Thankyou if you help

- Ben
Report Abuse
nicemike40 is not online. nicemike40
Joined: 19 Dec 2008
Total Posts: 1814
22 Aug 2014 07:53 PM
ValueObject.Changed:connect(function(newValue)
table.insert(Admins, newValue)
end)
Report Abuse
BenMck is not online. BenMck
Joined: 31 Jul 2012
Total Posts: 3652
22 Aug 2014 07:55 PM
The brick can be reused though, but I want the previous name to remain there, Will your script do it?
Report Abuse
BenMck is not online. BenMck
Joined: 31 Jul 2012
Total Posts: 3652
22 Aug 2014 08:04 PM
Bump, make up a full script, if you can, please.
Report Abuse
nicemike40 is not online. nicemike40
Joined: 19 Dec 2008
Total Posts: 1814
22 Aug 2014 08:12 PM
What do you mean the brick can be reused?

my script will work like this:

-- set ValueObject.Value to "BenMck"
> Admins = {"BenMck"}

-- set ValueObject.Value to "nicemike40"
> Admins = {"BenMck", "nicemik40"}
Report Abuse
BenMck is not online. BenMck
Joined: 31 Jul 2012
Total Posts: 3652
23 Aug 2014 05:13 AM
I'm only a basic scripted, the script. You provided, where do I put in the script?
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