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: Is this possible?

Previous Thread :: Next Thread 
EpicComputerGenuis is not online. EpicComputerGenuis
Joined: 16 Mar 2012
Total Posts: 985
08 Mar 2013 05:23 PM
Is it possible to have one admin index with all the admin's names, For 2 different admin scripts?


Thanks! [[Owner of R.R.C (1200+ Members)]]
Report Abuse
dog456pop248 is not online. dog456pop248
Joined: 24 Aug 2008
Total Posts: 3977
08 Mar 2013 05:26 PM
Make a global table
Report Abuse
Levidoo6 is not online. Levidoo6
Joined: 22 Aug 2009
Total Posts: 1526
08 Mar 2013 05:56 PM
^
Report Abuse
EpicComputerGenuis is not online. EpicComputerGenuis
Joined: 16 Mar 2012
Total Posts: 985
08 Mar 2013 06:23 PM
Umm... I have NO idea what a global table is... First time I've ever heard of it, Lol.

Anyone got an example of how one works? Or an actual one itself.


Thanks! [[Owner of R.R.C (1200+ Members)]]
Report Abuse
EpicComputerGenuis is not online. EpicComputerGenuis
Joined: 16 Mar 2012
Total Posts: 985
09 Mar 2013 12:11 AM
BUMP?


Thanks! [[Owner of R.R.C (1200+ Members)]]
Report Abuse
micke3212 is not online. micke3212
Joined: 24 Nov 2009
Total Posts: 3000
09 Mar 2013 12:14 AM
Stuff like (msg, 1,5))
Report Abuse
buddy249950 is not online. buddy249950
Joined: 30 Jun 2016
Total Posts: 3536
09 Mar 2013 12:15 AM
_G.ok is a global table.
Report Abuse
Usering is not online. Usering
Joined: 18 Aug 2012
Total Posts: 10281
09 Mar 2013 12:18 AM
@micke, wat?

in one normal script:

_G.admins = {"Usering","CeaselessSoul"}

in another normal script:

for i,v in pairs(_G.admins) do
print(i .. ": " .. v)
end

1: Usering
2: CeaselessSoul

~ Failure is the road to success ~
Report Abuse
EpicComputerGenuis is not online. EpicComputerGenuis
Joined: 16 Mar 2012
Total Posts: 985
09 Mar 2013 01:28 AM
Still don't really get it?

Where do you put the name of all the scripts in?


Thanks! [[Owner of R.R.C (1200+ Members)]]
Report Abuse
koen500 is not online. koen500
Joined: 23 Feb 2011
Total Posts: 2277
09 Mar 2013 02:55 AM
Global Table: _G.GlobalAdminTable = {"koen500", "noob"}
Report Abuse
EpicComputerGenuis is not online. EpicComputerGenuis
Joined: 16 Mar 2012
Total Posts: 985
09 Mar 2013 05:20 AM
That's the name of the Admins?

I mean the name of the admin scripts? So it can determine what scripts.


Thanks! [[Owner of R.R.C (1200+ Members)]]
Report Abuse
jordansloan76 is not online. jordansloan76
Joined: 30 May 2011
Total Posts: 17
09 Mar 2013 05:52 AM
Whats this about?
Report Abuse
jobro13 is not online. jobro13
Joined: 05 Aug 2009
Total Posts: 2865
09 Mar 2013 07:49 AM
That won't work in local scripts.

Model in Lighting with StringValues with their names set as the admin names?

local mod = game.Lighting.Admins

function IsAdmin(name)
return mod:FindFirstChild(name) ~= nil
end
Report Abuse
tyleralex123 is not online. tyleralex123
Joined: 01 Apr 2009
Total Posts: 19934
09 Mar 2013 08:48 AM
Make a boolvalue for the admin, and insert it into their player. Then it can be accessed anywhere.
Report Abuse
tyleralex123 is not online. tyleralex123
Joined: 01 Apr 2009
Total Posts: 19934
09 Mar 2013 08:50 AM
Something like...

if (checkOkToLetIn(newPlayer.Name, banned)) then newPlayer:remove() return end
local admin = Instance.new("BoolValue")
admin.Name = "Admin"
admin.Value = false
admin.Parent = newPlayer

if (checkOkToLetIn(newPlayer.Name, admins)==true) then newPlayer.Admin.Value = true save(player, "Boolean", "Admin", player.Admin.Value) end

idk something like this

CheckOKToLetIn is referencing the admins
Report Abuse
EpicComputerGenuis is not online. EpicComputerGenuis
Joined: 16 Mar 2012
Total Posts: 985
10 Mar 2013 08:17 AM
Ohh, But where do you add it? This is so confusing for me... Sorry.


Thanks! [[Owner of R.R.C (1200+ Members)]]
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