of     1   

UgandaPizzaPolice
#140977697Sunday, July 20, 2014 8:19 PM GMT

Can anyone help me fix this issue with the scripting? local adminModule = {}; adminModule.administrators = { Player1 = true; UgandaPizzaPolice = true; UgandaPizzaPolice2 = true; UgandaPPolice = true; etc = true; }; adminModule.IsAdmin = function(table, user) if (table(newUser)) then return true; end; end; return adminModule;
UgandaPizzaPolice
#140977755Sunday, July 20, 2014 8:20 PM GMT

Oh yea here's the other script also: local Settings = require(Workspace.AdminSettings); local Gui = game.ServerStorage.UgandaAdminGui game:GetService("Players").PlayerAdded:connect(function(newUser) if Settings.IsAdmin(Settings.Administrators, newUser) then Gui:Clone().Parent = newUser:WaitForChild("PlayerGui") end end)
UgandaPizzaPolice
#140978574Sunday, July 20, 2014 8:30 PM GMT

Just going to bump this thread
bibo5o
#140978956Sunday, July 20, 2014 8:35 PM GMT

More background info? How are these scripts connected?
Geodesic
#140979143Sunday, July 20, 2014 8:37 PM GMT

if (table[newUser]) then
UgandaPizzaPolice
#140979350Sunday, July 20, 2014 8:39 PM GMT

@bibbo The script with the "if (table[newUser]) then" is a module script that basically tells the main script which player is an admin or not. The main script is suppose to copy a gui that's inside of ServerStorage and move to the selected "administrators".
bibo5o
#140979772Sunday, July 20, 2014 8:44 PM GMT

Geodesic got it. To get a certain item in a list you use square brackets [], not normal or curly, () {}. eg table[1]
UgandaPizzaPolice
#140979917Sunday, July 20, 2014 8:46 PM GMT

Here's a model just to look into it if you don't get what I'm trying to say: http://www.roblox.com/Ugandas-Admin-Gui-v0-5-Pre-Alpha-item?id=167396219
UgandaPizzaPolice
#140980074Sunday, July 20, 2014 8:48 PM GMT

Hold on, let me test it out.
UgandaPizzaPolice
#140980217Sunday, July 20, 2014 8:49 PM GMT

It still not working. Here's what the server console says: http(:)//prntscr(.)com/44n0jk
Geodesic
#140980703Sunday, July 20, 2014 8:55 PM GMT

if Settings.IsAdmin(Settings.administrators --[[the 'a' in administrators isn't capitalised in your modulescript]], newUser) then
UgandaPizzaPolice
#140981707Sunday, July 20, 2014 9:06 PM GMT

Still giving me the same problem.
UgandaPizzaPolice
#140986277Sunday, July 20, 2014 9:52 PM GMT

bump
bibo5o
#140988088Sunday, July 20, 2014 10:11 PM GMT

Alright, I messed around with it in studio for a bit and I couldn't get it to work the way you're trying to do it However, I got it to work like this local Settings = require(Workspace.AdminSettings); local Gui = game.ServerStorage.UgandaAdminGui game:GetService("Players").PlayerAdded:connect(function(newUser) if Settings.IsAdmin(newUser) then Gui:Clone().Parent = newUser:WaitForChild("PlayerGui") end end) local adminModule = {}; adminModule.administrators = {"Player1";"UgandaPizzaPolice";"UgandaPizzaPolice2";"SkySpell";"SkySpellALT";}; adminModule.IsAdmin = function(user) string = table.concat(adminModule.administrators) if string.find(string,user.Name) then return true; end; end; return adminModule;
UgandaPizzaPolice
#140989572Sunday, July 20, 2014 10:28 PM GMT

Alright, going to test them out
UgandaPizzaPolice
#140989678Sunday, July 20, 2014 10:29 PM GMT

Oh my god, thank you so much! It works!
bibo5o
#140989715Sunday, July 20, 2014 10:29 PM GMT

np, c:
UgandaPizzaPolice
#140992028Sunday, July 20, 2014 10:54 PM GMT

Your credits have been given to properly.

    of     1