This script is supposed to check to make sure there isn't an intro, and when there is, it does nothing, but when there isn't three buttons are supposed to show up.

The problem is that when I join it works, but after I die the buttons aren't there

local gui = game.Players.LocalPlayer.PlayerGui:FindFirstChild("Intro")
if gui then
	print 'intro'
else
	print 'else'
	local gui1 =  game.Players.LocalPlayer.PlayerGui:WaitForChild("StartGui")
	print 'found'
	gui1.Lobby.Visible = true
	gui1.Points.Visible = true
	gui1.Timer.Visible = true
end

No errors or anything. It even prints found but then does nothing.

2 comments

0

I would say that StartGui is not being found by WaitForChild

0

@NotsoPenguin http://gyazo.com/0ed66abcdefd0e27ba8d19512d187b92 it prints 'found' but does nothing after that