I've been trying to find this for so long. I'm working on a plugin. I have attempted to find something on the wiki, but I just can't find it. Multiple plugins detect what the player is selecting.
I've also tried finding using PluginMouse but I can't find it. Please help.
Simple. When using plugins, there is a thing called Selection
and it has a function called Get()
which returns an array of everything selected. Here's an example code of what you can use it for:
for i, v in ipairs(game.Selection:Get()) do print(v..'is selected') end