Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Gui wouldn't open again after the x button is clicked?

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)

1 comment

0

What is the great grandparent of script?

1 answer

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)

This discussion is preserved as it was. New answers, comments, and votes are closed.