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

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

game.ReplicatedFirst.ScreenGui.Enabled = true

Yep just that

The script is also inside the screen GUI in replicated first

1 comment

0

wait(10)??

2 answers

wait(10)
game.ReplicatedFirst.ScreenGui.Visible = true

Make sure the Frame/GUI starts off as not visible

1 comment

0

ScreenGuis don't have a visible property, they have enabled

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

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