ModuleScript > LocalScript, especially when it comes to creating a service, and amplified when inserting other people’s code into your game.
This module can be required from any of your scripts, allowing you to have them all interact with it and its state. It has events and APIs like a Service, and a LocalScript could offer none of that.
If we look at my example above, it’s only possible with a module.
I have to call :HideCursor() and :ShowCursor() when the user wants to drag a slider setting.
I have to connect to the .CursorActivated and .CursorDeactivated events to know when to halt the custom movement.
I have to connect to the .GuiObjectSelectionStarted event to display the button icon next to the hovered gui.
All of those are crucial, and they work right out of the box with this module.
Interesting. I’m trying it here, doesn’t seem to be scrolling all the way down to the bottom (using a Scrolling Frame with a UIListLayout along with multiple buttons): https://gyazo.com/66060c8c6c2aaaa6c2a380d0b028b2a8
I don’t require outside modules… lol. Pretty sure that’s not even possible anymore.
How can it not be trusted if all of the code required is there…
Please do your research before making such claims.
As for your module, I’ve got to admit that it does allow a lot more control than mine does, but it doesn’t appeal to the basic developer. My system is more of a one-size-fits-most approach.
I just tested in studio and scrolling frames seem to be working perfect. You have to use the right thumbstick as that’s roblox’s default keybind. If this doesn’t work, I don’t know what the issue is
Sorry for being almost exactly four months late, but I just wanted to share a fork I made of this module that fixes the aforementioned ScrollingFrame bug! I also found that the speed of the cursor was tied to FPS, so I fixed that up too. Check it out if you’d like: GamepadCursor (+) - Roblox
I also put the source onto Pastebin, 'cause why not?
It’d be cool if these fixes could be put into the real module! That way, we can have a better cursor experience for everyone.
p.s. i am extremely sorry for reviving a 4 month old thread