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

(Reupload) Why doesn't my Gui become visible when it's suppose to?

I made a script where when a certain part of something happens a Gui is suppose to be visible, but when the script works, the Gui doesn't become visible, but when I reset my character the Gui is there. Why can't the Gui appear when the script tells it to?

game.StarterGui.Crawl.Crawl.Visible = true
wait(10)
game.StarterGui.Crawl.Crawl.Visible = nil

3 comments

0

Are you using a LocalScript? If not, do so.

0

And then use my answer in the local script.

0

it doesn't work, besides I found another solution and your answer helped me with it

1 answer

✓ Accepted answer

Any changes made to StarterGui will have no effect, since StarterGui's contents are copied into something called PlayerGui when a player joins.

Also, use 'false' instead of nil.

local PlayerGui = game.Players.LocalPlayer:WaitForChild('PlayerGui')

PlayerGui.Crawl.Crawl.Visible = true
wait(10)
PlayerGui.Crawl.Crawl.Visible = false

1 comment

0

Doesn't work

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