I'm trying to target the Mouse object and (due to the wiki being in the middle of API renovations) the only way I could find to target the mouse was with this:
script.Parent.Equipped:connect(function(mouse) mouse.Button1Down:connect(function()
Now I was wondering if there is a way to target straight to the mouse without having to go through all that function mumbo-jumbo. Is there a hierarchy to get to it, or do you have to use a function?
Yes, here's how you do it:
mouse = game.Players.LocalPlayer:GetMouse()
GetMouse()
returns a mouse object, which you can use like normal. Running this in any local script will work; it does not have to be in a tool or hopperbin.
Locked by adark, 2eggnog, and Shawnyg
This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.
Why was this question closed?