Mouse module - A replacement for the mouse object

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

3 Likes

plr:getmouse is not deprecated, but just suspreded by userinputservice

It’s still used these days

Also what’s wrong with plr:GetMouse()?

Perhaps you can help explain why you think it’s wasted time and offer constructive feedback instead of just insulting the person.


EDIT: They deleted their comment.

I never said the whole thing was deprecated, i said functions like KeyDown and KeyUp were, sorry if that was confusing

1 Like

So use userinputservice. What’s the problem with it

I never said there was a problem, and i never forced anyone to use it. I said this could be a replacement for thing using the mouse object that you might want to switch over to userinput for practibility

If this module just does the same as userinputservice I can’t see how it’s useful.

I don’t wanna be toxic tho

It doesn’t, as explained in the post, it replicates the mouse object
Thats why there is a example that shows it replacing the mouse object
It just uses userinputservice. It’s sort of a “wrapper” if you will, dont quote me on that