Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

How do I set the game.Selection:Get() property in Studio?

Asked by 10 years ago

I'm developing a FindObject plugin, but I don't know how to set the game.Selection:Get() property. How would I set it without causing an error?

1 answer

Log in to vote
2
Answered by
BlueTaslem 18071 Moderation Voter Administrator Community Moderator Super Administrator
10 years ago

Use the :Set method.

See the relevant Wiki article.

2
To extrapolate a bit, the Table returned by the `Get`of Selection isn't a property, so modifying changes nothing about the Selection. Also, in case you don't want to look OP, `Set` takes a list of Parts as input. Basically, a Table where you let Lua define the keys for you. adark 5487 — 10y
0
Thanks! ChipioIndustries 454 — 10y
Ad

Answer this question