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

3 comments
It doesnt work but i put it in a local script could that be why?
put it in server script
Alright it works thanks man