Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I make a plugin detect what a player is selecting?

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.

1 answer

✓ Accepted answer

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

1 comment

0

Tysm!

This discussion is preserved as it was. New answers, comments, and votes are closed.