|
| 20 Aug 2012 02:06 PM |
I am modifying person299's Admin commands to use data persistence in the admin list.
In players I have this: Game.Players.Player.leaderstats.Admin.Value == "True"
How would I have it get that value from the player entering and insert it to the admin list function which is:
for i=1,#adminlist do if string.lower(adminlist[i]) == string.lower(ack.Name) then local tfv = ack.Chatted:connect(function(msg) oc(msg,ack) end) table.insert(namelist,ack.Name) table.insert(variablelist,tfv) local tfv = ack.Chatted:connect(function(msg) foc(msg,ack) end) table.insert(flist,tfv) adminned = true.
I got it to work with a Bool Value in the script, but I want to be able to admin ingame and have it save. Thanks. First correct answers gets reward. |
|
|
| Report Abuse |
|
|
|
| 20 Aug 2012 02:22 PM |
I did this:
for i=1,#adminlist do if Game.Players:GetChildren() then for i = 1, #children do if children[i].leaderstats.Admin.Value == "True" then adminned = true
No output errors. But it does not work? Please Help? |
|
|
| Report Abuse |
|
|
Wobious
|
  |
| Joined: 17 Jan 2012 |
| Total Posts: 135 |
|
|
| 20 Aug 2012 02:27 PM |
if children[i].leaderstats.Admin.Value == true then
but i think bool value ruins leaderboard |
|
|
| Report Abuse |
|
|
|
| 20 Aug 2012 02:27 PM |
Just store it in player
† KMXD 2.0 † |
|
|
| Report Abuse |
|
|