Set (Method): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>ArceusInator
fix
>Camoy
No edit summary
Line 1: Line 1:
<onlyinclude>{{Method|name = Set
<onlyinclude>{{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 7:
}}</onlyinclude>
}}</onlyinclude>


{{clear floats}}


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


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

Revision as of 13:49, 31 December 2010

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())