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

Why aren't my Guis Showing up?

Asked by 9 years ago

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.

0
I would say that StartGui is not being found by WaitForChild NotsoPenguin 705 — 9y
0
@NotsoPenguin http://gyazo.com/0ed66abcdefd0e27ba8d19512d187b92 it prints 'found' but does nothing after that Senor_Chung 210 — 9y

Answer this question