Gui only the devs see

local Admins = {userIds}

game.Players.PlayerAdded:Connect(function(player)
      local PlayerGui = player:WaitForChild("PlayerGui", 60)
      if Admins[player.UserId] then 
            local gui = script.Gui:Clone()
            gui.Parent = PlayerGui
      end
end

In a server script:

local gui = script:FindFirstChildOfClass("ScreenGui")
local ps = game:GetService("Players")
local whitelistedPlayers = {["Ninja_Justin3"] = true,["iiKloee"] = true}
ps.PlayerAdded:Connect(function(p)
 if whitelistedPlayers[p.Name] == true then
  gui:Clone().Parent = p.PlayerGui
 end
end

What area in the explorer do I put this script?

Server Script

local Developers = {Dev1UserId,Dev2UserId}

game.Players.PlayerAdded:Connect(function(Player)
     if table.find(Developers,Player.UserId) then
        game.ServerStorage.DevGui:Clone().Parent = Player.PlayerGui -- The client can see startergui, so exploiters may be able to put the Developer Gui into their playergui if its there but I'm not sure :P
     end
end)

You should use table.find for checking whether the person is a dev

ServerScriptService would be the best choice, but you could put it in the workspace

Thanks but I mean like in local script, script, etc.

I dont want friends just devs too.

just add to the table, anyone’s userid that is in the table will see the gui

Ok so like only the users i put see it?

yes.


put the userIDS and not the usernames

were do i put the script? like in the gui? in the server script service? were

any were…

k and how do i make it know what gui im talking abt?

what do you mean


so it doesnt do the wrong gui lol

change the gui variable to the dev only location

k thanks wdym to dev variable tho

local Developers = { --  UserID or Username
	"Ninja_Justin3",
	1859494146,
	242872495,
	"KaiyoWorld",
}
local DeveloperGui = script.Gui -- Dev only gui




game.Players.PlayerAdded:Connect(function(Player)
	local Dev = false
	for i = 1, #Developers do
		if type(Developers[i]) == "string" then
			if Player.Name == Developers[i] then
				Dev = true
				break
			end
		elseif type(Developers[i]) == "number" then
			if Player.UserId == Developers[i] then
				Dev = true
				break
			end
		end
	end
	if Dev then
		local PlayerGui = Player:WaitForChild("PlayerGui")
		DeveloperGui:Clone().Parent = PlayerGui
	end
end)

you can use table.find :slight_smile: