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
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
Lua is case-sensitive. It has to be Visible.
ohhhhh ok ty
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.
1 comment
accept whichever answer helped