I've been trying to make an admin detector that would get a GUI out of server storage and once an admin joins it would give it to him. Tho i have a problem here wich i can't tell. It's surely because of pathway of Clone.Parent but I can't understand where i need to put it since it will work only running.
--Module Script
local module = {
"1378234206"
}
return module
--Normal script
local GUI = game.ServerStorage.CMDR
local PermsTable = require(script.Parent:WaitForChild("Permissions"))
game.Players.PlayerAdded:Connect(function(player)
if table.find(PermsTable, tostring(player.UserId)) then
local Clone = GUI:Clone()
Clone.Parent = game.Players.module.PlayerGui
print("Admin Detected!")
else
print("Oops...Something went wrong!")
end
end

3 comments
Try relocating it to ReplicatedStorage and see if it makes a difference. Odds are there are LocalScripts that are refusing to run, but you never exactly specified your problem.
Replace line 16 with: Clone.Parent = player:WaitForChild("PlayerGui"); PlayerGui is container of Player where all of the GUI stored is shown to the player: https://developer.roblox.com/en-us/api-reference/class/PlayerGui
Still doesn't work.