Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to make GUI appear after some time?

I'm making game and I need GUI that will appear after 60 seconds after player joins. I ended up with this script:

local StarterGui = game.StarterGui local ScreenGui = StarterGui.ScreenGui.Text local Players = game:GetService("Players")

Players.PlayerAdded:Connect(function(player) wait(60) ScreenGui.visible = true end)

But it isn't working. Anybody help?

4 comments

0

use playergui

0

I tried everything but it isnt working

0

have you tried using game.Players.LocalPlayer?

0

Put the script in the gui, use a local script, and try to locate the gui by using script.Parent.

2 answers

Create a Script in Workspace Type:

wait(50) -- How much Seconds before it appears game.StarterGui.NameOfGui.NameofThing.Visible = true

did it help? also set your frame/button/image to Invisible Name of Gui is the ScreenGui Name NameofThing is a Button/Image.etc

try adding a LocalScript to the gui you want to make appear, then insert the following code:

local gui = script.Parent

gui.Enabled = false

wait(50)-- or however long you want it to wait

gui.Enabled = true

This discussion is preserved as it was. New answers, comments, and votes are closed.