this is the script:
wait(3)
local PlayerGui = game.Players.LocalPlayer.PlayerGui
PlayerGui.Events.BlackScreen.Visible = true
PlayerGui.Nights.Night1.Visible = true
PlayerGui.Nights.Night2.Visible = true
PlayerGui.Nights.Night3.Visible = true
PlayerGui.Nights.Night4.Visible = true
PlayerGui.Nights.Night5.Visible = true
PlayerGui.Nights.Night1.MouseButton1Down:Connect(Night1())
function Night1()
PlayerGui.Nights.Night1.Visible = false
PlayerGui.Nights.Night2.Visible = false
PlayerGui.Nights.Night3.Visible = false
PlayerGui.Nights.Night4.Visible = false
PlayerGui.Nights.Night5.Visible = false
end
it worked before but its broke now, help

5 comments
I spent 10 minutes trying to come up with a title that worked. The system is stupid just gonna say that.
I believe you have to define the function before calling it, so you would move the Night1 function to line 10
ok did that but my main concern now is that the "Nights" arent turning visible
did you try what b_mni posted as an answer? it should look exactly like that
yes