Small nitpick:
at line 7 and 11 of ‘ClickDetection’, you don’t use WaitForChild(). This can cause an error sometimes if the respective children aren’t loaded in yet. Also in the AutoFillHandler modulescript there’s some accesses that don’t use waitforchild. It’s an easy fix though.
Alright, I’ll look at that later and see if I should add that.
I updated the module adding a little fix with an invalid character causing errors and lots of notes throughout the main module.
I’m pretty sure it should account for updates by itself as long as you put game.Players in the possible results. Also it will search for children automatically.
I never said it wasn’t?
I’m just saying that if you put game.Players (or game:GetService("Players")) as a result, then the autofill results will update automatically when instances are added.
Also you can filter the results to only show Player instances.
Yeah, I’ve been trying to figure out how to get the exact Vector2 of the CursorPosition as I’m working with making a custom IDE. Also, what would I need to do for this to work in a plugin?
For getting it to work in a plugin you should be able to just place the module under the plugin script though I’m not sure how doing ui stuff works in plugins.
The module puts the gui inside of StarterGui so it probably won’t work without some modifications.
I’ll try making it work inside of a plugin later when I can get on my computer.
As for getting the mouse Vector2 you should just be able to use