What do you want to achieve? So i am making my reset button but for some reason i can not figure out why the close button is not closing the gui. and nothing is shown on the dev log
What is the issue? the no button is not closing the gui
What solutions have you tried so far? i have tried changing the scripts so far i can think of but i seem to have no solutions i am probably just really tired
local Frame = script.Parent.Parent.ResetFrame
local Button = script.Parent
Button.Activated:connect(function()
if Frame.Visible == true then
Frame.Visible = false
else
Frame.Visible = true
end
end)
the “Frame.Visible = not Frame.Visible” part basically makes the Boolean it’s opposite
if Frame.Visible is true then it turns into false, so goes with the other way
Hello i just changed it to ".Mousebutton1Click seems nothing has changed. i have now looked into the No gui and script as i forgot to mention this and it displays this
script.Parent.Parent.Visible = false
end
script.Parent.MouseButton1Down:connect(Click)
I think you have to put a local script in the screen gui (resetstage)
and in the script put this:
local frame = script.Parent.ResetFrame
local no = script.Parent.ResetFrame.no — ( rename the text button to: no)
local reset = script.Parent.Reset
no.MouseButton1Click:connect(function()
frame.Visible = false
reset.Visible = false
end)