I'm making it so when a player clicks a button, the ScreenGui disables. However, its not working anymore. How come? This is the code that used to work:
wait(0.25)
local Screen = script:WaitForChild('TitleScreenGui')
local screen = Screen:Clone()
local play = screen.TitleScreenBox.TitleText.PlayButton
game.Players.playerAdded:connect(function(player)
local startergui = player:WaitForChild('PlayerGui')
screen.Parent = startergui
screen.Enabled = true
end)
play.MouseButton1Down:connect(function(player)
screen.Enabled = false
end)
What happened to my script that made it so it stopped working? Was it an update?

2 comments
Could you try destroying the GUI?
I did that too, but it still didn't work