local ServerStorage = game.ServerStorage
local AdminsMenu = ServerStorage:WaitForChild("AdminMenu")
admins = {0000000000,0000000000,0000000000}
game.Players.PlayerAdded:Connect(function(plr)
if table.find(admins, plr.UserId) then
game.SoundService.promotion.Volume = 0.3
local adminPanel = AdminsMenu:Clone()
adminPanel.Parent = plr.PlayerGui
adminPanel.Enabled = true
else
game.SoundService.promotion.Volume = 0
end
end)
This script makes an admin menu and clones this admin menu inside plrGUI for specific players, but the problem is that when they die or respawn, the menu does not show up again.
This is due to the fact when you call ‘PlayerAdded’ it only calls a single time! This is because PlayerAdded is called when the player is added to the server.