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

How to make GUI appear after some time?

Asked by
Stirik 0
4 years ago

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?

0
use playergui raid6n 2196 — 4y
0
I tried everything but it isnt working Stirik 0 — 4y
0
have you tried using game.Players.LocalPlayer? CrownedFigure 45 — 4y
0
Put the script in the gui, use a local script, and try to locate the gui by using script.Parent. GamingHDstudios 17 — 4y

2 answers

Log in to vote
0
Answered by 4 years ago

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

Ad
Log in to vote
0
Answered by 4 years ago

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

Answer this question