Well normally, I would use a localscript and use :GetMouse() but this clearly doesn't work for scripts. How would I do this?
COMMUNITY QUESTION
How do I get the player's through a regular script?
2 answers
If you're script is in a tool, you can do:
script.Parent.Equipped:connect(function(mouse)
--code
end)
Then use the built in parameter mouse. However, this would be better to do from a Local Script since it's inside a player.
This is the only way I know of to get the mouse from a server script, and even it may not work. Use a local script.
2 comments
0
What original question? The only question I'm asking is how to get a player's mouse from a script within the player.
0
Read it now
You want to get their mouse in a server-side script? I don't think that's possible...
Be more specific? are you trying to get all players? just use:
local players=game.Players:GetPlayers()
for _,v in ipairs(players) do
local player=v
local playerMouse=player:GetMouse() --Might not work...
end
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Conclusion: there is no how.