gui = script.Parent
guisToHide = {script.Parent.Parent.Lol,script.Parent.Parent.Loler,script.Parent.Parent,script.Parent.Parent.ImageLabel}
if not game.Players.LocalPlayer:FindFirstChild("Boolean") then --If the value doesn't exist
local bool = Instance.new("BoolValue",game.Players.LocalPlayer) --Create the value
bool.Name = "Boolean" --Name it
else --If it exists
gui.Visible = false --Make the guis invisible
for _,c in pairs(guisToHide) do
c.Visible = false
end
end
gui.MouseButton1Click:connect(function()
if gui.Visible == true then
gui.Visible = false
for _,c in pairs(guisToHide) do
c.Visible = false
end
end
end)
COMMUNITY QUESTION
This script only works in studio why?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
You should probably make a variable for script.Parent.Parent, that table is as long as the human genome. Make sure that you do :WaitForChild("Loler") and stuff like that.