Why doesn't the gui become visible via local script

  1. Introduction
    When the button is clicked I have it so four ImageButtons in the same ScreenGUI become visible.

For whatever reason, they are not becoming visible. I’m not getting any errors and have a print statement inside the function that is working so I’m just really confused. I’ve been looking at this for the past two hours trying to find other ways to get it to work and no luck, any help would be appreciated. Let me know if you need any other information. Thanks!! :slightly_smiling_face:

	-- Play Button --
	script.Parent.MouseButton1Click:Connect(function()
		local menu = StarterGui.Menu
			local imageButton1 = menu.ImageButton1
			local imageButton2 = menu.ImageButton2
			local imageButton3 = menu.ImageButton3
			local imageButton4 = menu.ImageButton4
			imageButton1.Visible = true
			imageButton2.Visible = true
			imageButton3.Visible = true
			imageButton4.Visible = true
			print("should be visible!!!")
	end)
end

helpmepls

1 Like

Try doing: local menu = script.Parent.Parent

1 Like

don’t know how, but that worked. appreciate it!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.