First Selected Bug

I can’t tell if this is a bug with Studio or with qCmdUtl, but when using tools that perform actions based on the first object selected, the first object seems to change as drag the selection box over more parts as if certain parts override the first selected.


I’m not sure if this is just something that’s going wrong in the plugin or if something pertaining to selections is being wonky. Is any one else experiencing this?

SelectionBug.rbxl (27.3 KB)

It’s the selection tool.

Repro steps:

  1. Name a part ‘first’.
  2. Hit play and run this in the command bar:
--Prints out the index of a part named 'first' in the selection.
local function find_index(tbl, name) for i, v in next,tbl do if v.Name == name then return i end end end while true do print(find_index(game.Selection:Get(), 'first')) wait(0.25) end

3 Use the selection tool to select a bunch of parts (first doesn’t necessarily have to be selected first)
4 You’ll see the index jump around.

tl;dr the selection box is shuffling around the selection table for no good reason.

Multiple selections with ctrl still work fine.

2 Likes