Im a new scripter and I just encountered something that can most likely be fixed by changing one small thing.
script
-- variables -------------------------------------------------------------------------------
local button = script.Parent
local button2 = script.Parent.Parent
function newgui()
wait(0.03) -- tester
button.Visible = false
button2.Visible = true
end
button.MouseButton1Click:Connect(newgui) -- when the button is clicked, run the function newgui
The green block is supposed to disappear when the red button is clicked. but it doesn’t work. The red button gets clicked and. disappears (as it should) but the green block is unaffected
Explorer window
helps me pls