Find the game in question here.

I was working on some menu GUI and all of a sudden I notice that none of the SurfaceGUI in the game and or the menu responds to the mouse at all. It wont register hovering, clicking or any other event related to the mouse. I made a brand new part with a GUIButton on it and that didn't respond ether. I also tried putting the ZIndex of the buttons to -10 but that didn't help

The weirdest part is that scrollbars work just fine still.

My best guess that its this script that opens and closes the menu if a level is started. Just because its the only thing I added in relation to SurfaceGUI when I noticed the problem.

script.Parent.Changed:Connect(function()
	if script.Parent.Value == true then
		local MenuObjects = game.Workspace.Menu:GetChildren()
		for i=1,#MenuObjects do
			MenuObjects.SurfaceGui.Enabled = false
		end
	end
	if script.Parent.Value == true then
		local MenuObjects = game.Workspace.Menu:GetChildren()
		for i=1,#MenuObjects do
			MenuObjects.SurfaceGui.Enabled = true
		end
	end
end)

But its still quite a stretch.

Here's the Explorer if that helps at all. Id be happy to give any other information that could help with this.

2 comments

0

mind if i team create with you? i had a similar problem and it turns out i had a frame on top of the other guis making it not register clicks

0

@royaltoe but if that was happening wouldent the scrollbars not work ether? Also I made a brick with nothing but a SurfaceGUI and a GUIButton in it and it still didnt work.