I am trying to create a welcome screen GUI That can:
close / open the developer log and click "play" and hide the welcome screen
The only script that is functioning is the starterScript, The rest just wont work.
script to click on the log button and open / close developer log (openLogScript)
script.Parent.MouseButton1Click:Connect(function()
if game.StarterGui.ScreenGui.welcomeScreen.log.Visible == false then
game.StarterGui.ScreenGui.welcomeScreen.log.Visible = true
else
game.StarterGui.ScreenGui.welcomeScreen.log.Visible = false
end
end)
script to click the play button and close the GUI (playScript)
script.Parent.MouseButton1Click:Connect(function()
game.StarterGui.welcomeScreen.Visible = false
end)
script to set things up at the start (starterScript)
game.StarterGui.ScreenGui.welcomeScreen.Visible = true
game.StarterGui.ScreenGui.welcomeScreen.log.Visible = false
object tree:
ServerScriptService
starterScript
StarterGUI
Screen GUI
welcomeScreen
log (developer log)
play (play button)
playScript
openLog (log button)
openLogScript

3 comments
Is it supposed to open the welcome screen when a player joins or open when you click a button
it opens the welcome screen when you join, you can see if you looked at starterScript
Oh I see the problem now I'll post in answers