So I have this code inside of my close gui button and I'm not sure why its not working. Any help?
local gui = script.Gui
script.Parent.MouseButton1Click:Connect(function() gui.Enabled = false end)
So I have this code inside of my close gui button and I'm not sure why its not working. Any help?
local gui = script.Gui
script.Parent.MouseButton1Click:Connect(function() gui.Enabled = false end)
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
Is it in a local script?
It wasn't but I tried it in one and that didn't work