Still have questions? Join our Discord server and get real time help.
0

# How come my script doesn't work anymore? The ScreenGui just stays there.

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

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?

0
Could you try destroying the GUI? CherryLeaves 32 — 3y
0
I did that too, but it still didn't work marioblast1244 113 — 3y

0

wait(0.25)
local Screen = script:WaitForChild('TitleScreenGui')
local screen = Screen:Clone()
local play = screen.TitleScreenBox.TitleText.PlayButton

local startergui = player:WaitForChild('PlayerGui')
screen.Parent = startergui
screen.Enabled = true
end)

play.MouseButton1Down:connect(function(player)
screen:Destroy()
wait(1)
end)


0
Yeah, that is exactly what I had tried. Just to make sure, I also tried it again, yet it still doesn't work. marioblast1244 113 — 3y