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

trying to make a screen gui temporarily disappear. any help?

error message: 12:16:04.208 - visible is not a valid member of TextLabel

wait(2)
local screengui =script.parent
screengui.visible = false 
wait(10)
screengui.visible = true

1 comment

0

accept whichever answer helped

4 answers

✓ Accepted answer

Lua is case-sensitive. It has to be Visible.

2 comments

0

ohhhhh ok ty

0

Mark it as answered if it works

ScreenGui's do not support a Visible property, instead, use Enabled!

wait(2)
local ScreenGui = script.Parent
ScreenGui.Enabled = false
wait(10)
ScreenGui.Enabled = true

put script inside textlabel

wait(2)
local TextLabel = script.parent
TextLabel.Visible = false 
wait(10)
TextLabel.Visible = true

If it's a TextLabel you can do .Visible because it's a property, but if it's a ScreenGui do .Enabled because .Visible isn't a property of ScreenGui, it's a property of TextLabel.

Edit: Please make sure about the capitalizations or it wont work!!!

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