Its a script in serverscriptservice so only i can see it. It works but when i reset or die then it deletes it self. CP is the GUI
local allowed = {"jakubiscool5", "Nobody"}
game.Players.PlayerAdded:Connect(function(player)
for i, v in pairs(allowed) do
if player.Name ==v then
script.CP:Clone().Parent = player:WaitForChild("PlayerGui")
end
end
end)

3 comments
Please provide us with your scripts for us to be able to help you.
In the server script did you do "game.StarterGui.Gui:Destroy()"
When you're dealing with GUIs you should be using a local script, it makes no sense to use a server script