I've been trying to make a playerlist, and try this out but I can't figure out how it would work. Could somebody show me how you would turn this script into a admin only can see frame, so if there's a non admin, it will not go visible?
script.Parent.MouseEnter:connect(function hai() Script.Parent.Frame.Visible = true end) script.Parent.MouseLeave:connect(function bai() Script.Parent.Frame.Visible = false end)
I think this will work if not I'll fix it.
PlayerList={"Admin","Kozero","Wrongmistake"}--Put the names here. script.Parent.MouseEnter:connect(function (plyr) for i,v in pairs(PlayerList) do if string.name == v then Script.Parent.Frame.Visible = true end end end) script.Parent.MouseLeave:connect(function (plyr) for i,v in pairs (PlayerList) do if string.Name == v then Script.Parent.Frame.Visible = false end end end)