The following script is not doing what it is intended to do, it is intended to check to see if a player is "banned", if they are banned text becomes visible saying "you are banned" if not it checks to see if the GUI menu is opened, if it is the GUI menu closes, if it isn't it opens. Below is the code.
local plyr = script.Parent.Parent.Parent.Parent.Parent
local Idea = script.Parent.Parent.IdeaGUI
local Button = script.Parent
function IdeaFunction()
if plyr.Name == {"EmperorD"} then
script.Parent.Parent.banned.Visible = true
else if Idea.Visible == true then
Idea.Visible = false
Button.Text = "Open"
else if Idea.Visible == false then
Idea.Visible = true
Button.Text = "Close"
end
end
end
end
script.Parent.MouseButton1Down:connect(IdeaFunction)
