Visible (Property): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Camoy
Link mistake, sorry!
 
m Text replacement - "</SyntaxHighlight>" to "</syntaxhighlight>"
 
(11 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{Property|
<onlyinclude>{{Property
name = Visible
|name       = Visible
|property = [[Boolean]] ''Visibility''
|property   = [[bool]]
|description = Determines whether the object and it's children will be displayed.
|description = Determines whether the object and its descendants will be displayed.
|object = [[RBX.lua.Frame (Object)|Frame]], [[RBX.lua.ImageButton (Object)|ImageButton]], [[RBX.lua.TextBox (Object)|TextBox]], [[RBX.lua.TextButton (Object)|TextButton]], [[RBX.lua.TextLabel (Object)|TextLabel]]
|objects      = [[RBX.lua.GuiObject (Object)|GuiObject]], [[RBX.lua.LoadingGui (Object)|LoadingGui]], [[RBX.lua.GuiBase3d (Object)|GuiBase3d]]
|}}
}}</onlyinclude>
 
{{clear floats}}
 
{{Example|This will only run in a [[LocalScript]].<syntaxhighlight lang="lua">
local frame = game.Players.LocalPlayer.PlayerGui.ScreenGui.Frame
frame.Visible = false
</syntaxhighlight>}}
 
[[Category:Properties]]

Latest revision as of 04:41, 27 April 2023

Visible
Property bool
Description Determines whether the object and its descendants will be displayed.
Member of GuiObject, LoadingGui, GuiBase3d


Example
This will only run in a LocalScript.
local frame = game.Players.LocalPlayer.PlayerGui.ScreenGui.Frame
frame.Visible = false