So im trying to make a code that enables a gui only for me But it doesnt seem to be working can somebody help
local p = script.Parent.Parent.Parent.Parent.Name
local function enable()
game.Players:WaitForChild(p).PlayerGui.OverSeerGui.Enabled = true
end
if p == "Itsyaboyhands" then
enable()
end
local playerthatcanuse = {"Itsyaboyhands"} local gui = game.StarterGui.OverSeerGui game.Players.PlayerAdded:Connect(function(plr) table.foreach(playerthatcanuse, function(i,v) if plr.Name == v then local guiclone = gui:Clone() guiclone.Parent = plr:WaitForChild("PlayerGui") guiclone.Enabled = true end end) end)