Now, you may be asking, “why would I want to use this?”
Well, thats a good question! This module has everything (apart from icon) from the mouse object implemented into a easy to use module. And, lets be honest, It is easier to use the mouse object than user input service for some cases. This can also be useful where your game currently uses the mouse object and you want to switch over (lets say your using keydown or keyup which is deprecated) You can simply switch over using this module!
Example:
local plr = game.Players.LocalPlayer
local mouse = require(script:WaitForChild("Mouse")):GetMouse()
-- 😳
plr:GetMouse()
now becomes module:GetMouse()
. It’s that easy.
I’m aware that the module can obviously be improved, so please, send feedback.
Would you use this module instead of the mouse object?
- Sure, why not?
- Nope, not for me.
0 voters
Link: Mouse - Roblox
PS: Idle and Move events are stuttery, I will try fix it in the near future (if people actually care about this module)
Edit: turns out people dont care about the module im not suprised lol
This module was created because the mouse was superseded by UserInputService
The module recreates the mouse using userinputservice. And also, because i was bored Just wanted to make that clear