Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why doesn't my Title Screen Script work anymore?

Asked by 7 years ago
Edited 7 years ago

I made a Title Screen and it used to work. How come it doesn't work anymore? This is my code:

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:Destroy()
end)

Any suggestions would be appreciated!

4
Possibly because you didn't close the parenthesis on line 7... M39a9am3R 3210 — 7y
0
lol i think i did but copy pasted wrong marioblast1244 113 — 7y
0
Yeah i did copy paste it wrong marioblast1244 113 — 7y

Answer this question