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

I want this gui to hide at the beginning and show later Does not work Why?

Asked by 6 years ago
game.ReplicatedFirst.ScreenGui.Enabled = true

Yep just that

The script is also inside the screen GUI in replicated first

0
wait(10)?? greatneil80 2647 — 6y

2 answers

Log in to vote
0
Answered by 6 years ago
Edited 6 years ago
wait(10)
game.ReplicatedFirst.ScreenGui.Visible = true

Make sure the Frame/GUI starts off as not visible

0
ScreenGuis don't have a visible property, they have enabled User#1007 6 — 6y
Ad
Log in to vote
0
Answered by 6 years ago

game:GetService("ReplicatedFirst"):WaitForChild("ScreenGui").Enabled = false This is the best way I know of ^

WaitForChild, as it says in the name, waits until it finds a child named "ScreenGui" where you tell it to search for it, faster than just wait(10).

Also you should also use game:GetService(service) instead of game.Service, if something went weird like an exploiter renamed a service somehow it should still work because it's looking for the class name instead of the instance name of the service

Answer this question