So, I really have no clue at this point. I was told to you elseif instead of if in the 4 fourth line. Well... it didn't work. SO, I guess I need some help.
Here it is:
script.parent.MouseButton1Click:connect(function(Open)
if game.StarterGui.ExploreID.ProfileShade.Visible==false then
game.StarterGui.ExploreID.ProfileShade.Visible=true
elseif game.StarterGui.ExploreID.ProfileShade.Visible==true then
game.StarterGui.ExploreID.ProfileShade.Visible=false
end
end)
I have also tried.
function open()
if game.StarterGui.ExploreID.ProfileShade.Visible==false then
game.StarterGui.ExploreID.ProfileShade.Visible=true
elseif game.StarterGui.ExploreID.ProfileShade.Visible==true then
game.StarterGui.ExploreID.ProfileShade.Visible=false
end
end
script.Parent.MouseButton1Click:connect(open)
Any suggestions or fixes?
Wow, it was actually very easy. Redid the code. XD
function open()
script.Parent.Parent.Parent["ProfileShade"].Visible = not script.Parent.Parent.Parent["ProfileShade"].Visible
end
script.Parent.MouseButton1Click:connect(open)
