Hello, I am trying to make a script where if you click a button another it checks if the player is either iiTiago or AyeeJordy and when it is the correct player it will open another frame and close the current frame which is open BTW the other frame that's meant to open is within the StarterGui. No errors showed up
-- iiTiago 2K16
local Mainbtn = script.Parent
local AdmPan = game.StarterGui.City_Gui.AdminPanel
local Mainf = Mainbtn.parent.parent.Parent
function open(plr)
if plr.Name == "iiTiago"or"AyeeJordy"or"Player1" then
AdmPan.Visible = true
Mainf.Visible = false
end
script.Parent.MouseButton1Click:connect(open)
-- iiTiago 2K16
