Well normally, I would use a localscript and use :GetMouse() but this clearly doesn't work for scripts. How would I do this?
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.
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