So I'm trying to make a programmable robot in ROBLOX that can do fun things but I come across this error and I do not know how to solve it.
local localadmin = {"GiveMeYourPudding"}
function OpenAccess()
local PBCE = script.Parent.PUDBOTCodeEdit
PBCE.Parent = game.StarterGui
end
script.Parent.ClickDetector.MouseClick:Connect(function(plr)
for i,v in pairs(localadmin) do
if v == plr.Name then
OpenAccess()
end
end
end)
This is a link to the picture of my Explorer (everything that is unnecessary to this I put into Lighting): https://cdn.discordapp.com/attachments/502963941979324435/520985404447653901/unknown.png

1 comment
My objective is if your username is on localadmin, the PUDBOTCodeEdit GUI comes up onto your screen.