Set (Method): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>ArceusInator
fix
m Text replacement - "</SyntaxHighlight>" to "</syntaxhighlight>"
 
(10 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<onlyinclude>{{Method|name = Set
<onlyinclude>
{{Locked}}
 
{{Method
|name = Set
|arguments = [[Table]] ''selection''
|arguments = [[Table]] ''selection''
|returns = [[nil]]
|description = Set's the client's selected objects to all of those in the table.  You can select objects you wouldn't normally be able to like [[DataModel]], [[SocialService]], and other non-browsable [[Instance]]s.
|description = Set's the client's selected objects to all of those in the table.  You can select objects you wouldn't normally be able to like [[DataModel]], [[SocialService]], and other non-browsable [[Instance]]s.
|object = Selection
|object = Selection
Line 7: Line 10:
}}</onlyinclude>
}}</onlyinclude>


{{clear floats}}


{{Example|<syntaxhighlight lang="lua">
game.Selection:Set(game:GetChildren())
</syntaxhighlight>}}


{{Example|
<pre>
game.Selection:Set( game:GetChildren() )
</pre>}}
[[Category:Methods]]
[[Category:Methods]]

Latest revision as of 06:20, 27 April 2023

Protected:This item is protected. Attempting to use it in a Script or LocalScript will cause an error.
Set( Table selection )
Returns nil
Description: Set's the client's selected objects to all of those in the table. You can select objects you wouldn't normally be able to like DataModel, SocialService, and other non-browsable Instances.
Member of: Selection


Example
game.Selection:Set(game:GetChildren())