I want to put my table in another separate place so I can grab it with all my other scripts that requires it. It would be much easier just to change only one script instead of many other ones.
local admins = {
[43764376] = true;--baxzzi
[123268417] = true;--canadian_kidgamer
[86489853] = true;--JonathanParkourPro
}
This is the table I want to grab and use it as a "local variable" for other scripts to use. Anyone know how to achieve this?
Here's the whole the script that this table is in.
local players = game:GetService('Players')
local me = players:GetPlayerFromCharacter(script.Parent)
local character = me.Character
local head = character:WaitForChild("Head")
local nametag = game.ServerStorage:WaitForChild("nameTag")
local cloned = nametag:Clone()
local type1 = cloned:WaitForChild("type1")
local line1 = type1:WaitForChild("line1")
local imageFrame = type1:WaitForChild("imageFrame")
local rank = imageFrame:WaitForChild("rank")
local debug = game.ServerScriptService.debugMode.Value
local admins = {
[43764376] = true;--baxzzi
[123268417] = true;--canadian_kidgamer
[86489853] = true;--JonathanParkourPro
}
cloned.Parent = head
cloned.Adornee = head
cloned.type1.Visible = true
line1.Text = "Player ".."(".. me.name ..")"
imageFrame.Visible = true
if admins[me.userId] then
imageFrame.Size = UDim2.new(0.35,0,0.3,0)
imageFrame.Position = UDim2.new(0.32,0,0.3,0)
imageFrame.ImageColor3 = Color3.fromRGB(255, 82, 85)
rank.Text = "ADMIN"
else
print('not admin')
end

4 comments
oooh what type of script
Why not use a module, and have the scripts require the module?
I posted that, though It didn't seem to be effective.
tbh, modules would be better for this