What i need is if the players name is on of the admins the gui will be enabled and else it is not enabled. Please help
Local Script
local o = script.Parent.o
local mod1 = require(game.ServerScriptService.Admins)
o.Activated:Connect(function()
script.Parent.Parent.AdminGUI.Enabled = true
script.Parent.Enabled = false
end)
if script.Parent.Parent.Parent.Name == mod1.Admins then
script.Parent.Enabled = true
else
script.Parent.Enabled = false
end
Module
local module = {}
--List admins below how i listed them.
module.Admins = {
"Plieax",
"X_ack",
"Player1",
}
return module

2 comments
You should not be messing around with guis from the server. Use a LocalScript.
Oh you meant to say Local lol