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: Get Bool Value Issue Admin Commands.

Previous Thread :: Next Thread 
007cody625 is not online. 007cody625
Joined: 07 Aug 2010
Total Posts: 640
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
007cody625 is not online. 007cody625
Joined: 07 Aug 2010
Total Posts: 640
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 is not online. 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
Destroshun is not online. Destroshun
Joined: 12 Aug 2012
Total Posts: 764
20 Aug 2012 02:27 PM
Just store it in player

† KMXD 2.0 †
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