Set (Method): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
m Text replacement - "<code lua>" to "<SyntaxHighlight code="lua">"
m Text replacement - "</code>" to "</SyntaxHighlight>"
Tags: mobile web edit mobile edit
Line 14: Line 14:
{{Example|<SyntaxHighlight code="lua">
{{Example|<SyntaxHighlight code="lua">
game.Selection:Set(game:GetChildren())
game.Selection:Set(game:GetChildren())
</code>}}
</SyntaxHighlight>}}


[[Category:Methods]]
[[Category:Methods]]

Revision as of 04:07, 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())