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 |
|
|
|
| 22 Aug 2014 07:53 PM |
ValueObject.Changed:connect(function(newValue) table.insert(Admins, newValue) end) |
|
|
| Report Abuse |
|
|
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
|
  |
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|