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

My Gui Closes but never opens. How can i solve it ?

script.Parent.HomeButton.MouseButton1Click:Connect(function()
	if script.Parent.HomeButtonActivated == false then
		print("hi")
		script.Parent.Parent.cancloses.Enabled = true
		script.Parent.HomeButtonActivated.Value = true
	else
		print("hiv")
		local f = script.Parent.HomeButton
		script.Parent.Parent.cancloses.Enabled = false
		script.Parent.HomeButtonActivated.Value = false
	end
end)

I made 2 ScreenGuis which one's name is cancloses . I can close it. but when i try to open... it doesnt open

1 answer

✓ Accepted answer
local open = false
script.Parent.HomeButton.MouseButton1Click:Connect(function()
	if open == false then
		--open
		open = true
	else
		--close
		open = false
	end
end)

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