I made a GUI Image Label in StarterGUI > ScreenGUI. I made a brick in Workspace and added a "Click Detector" to it. To the "Click Detector" I added a script.. I typed this in the script:
script.Parent.MouseClick:connect(function()
game.StarterGui.ScreenGui.EarthMonitorOff.Visible = true --Tried to find the Image Label
wait(1)
game.StarterGui.ScreenGui.EarthMonitorOff.Visible = false
game.StarterGui.ScreenGui.MonitorBootUp:Play()
wait(0.01)
game.StarterGui.ScreenGui.EarthMonitorOn.Visible = true
end)
I made 3 Image Labels but not even one works and shows up. I am clicking the button and all I hear is the audio I added in line 5. Thats all. Can anyone help me solve this? I tried looking for an solution but couldn`d find one that would help me and fix the problem.

4 comments
connect is deprecated use Connect
Doesn't works.
oh gee ok so the contents of startergui get copied into Player.PlayerGui, so for that you would have to get the players who clicked name and then do player.PlayerGui.EarthMonitorOff.Visible = true etc.
Also you can't change it from a server script.