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!

3 comments

4

Possibly because you didn't close the parenthesis on line 7...

0

lol i think i did but copy pasted wrong

0

Yeah i did copy paste it wrong