well could somebody please fix this problem, I didn't know what to do on the script.
Problem: gui for atm system wouldn't activate after I clicked on the x button. The x button is inside a frame which is inside the gui.
script.Parent.MouseButton1Click:connect(function() script.Parent.Parent.Parent.Enabled = false end)
I know I added the enabled = false but if I did this it would just not work or just break the script and leave the gui on.
if script.Parent.Parent.Parent == false then script.Parent.Parent.Parent = true end)
you forgot the .Enabled
after the .Parent
in the second script.
Also, this should work
script.Parent.MouseButton1Down:connect(function() script.Parent.Parent.Parent.Enabled = not script.Parent.Parent.Parent.Enabled end)