So if I use mouse.X and and mouse.Y, then it returns (for me) 0-2560, and 0-1440.
However, how do I see mow much the mouse has moved not really in pixels (yeah not pixels), but in something else? I have a script that pans the camera, and it can differ from monitor resolution. I have a huge monitor, so the panning is fast. But if someone has a crappy 480p monitor or smth, then the pixels the mouse has traveled will be very short, so the panning will be slower. I just want the panning to stay a consistent speed up and down, left and right, regardless of resolution.
I may be completely wrong here so I apologize, but if you’re trying to use tween for the camera, and you want to tween for the same speed / distance etc you could see what this thread did
Uhhh well I’m not using tween service.
local Player = game.Players.LocalPlayer
local LastPosition = Player:GetMouse().Hit.Position
while true do
if LastPosition == Player:GetMouse().Hit.Position then
print("Mouse has the same position.")
else
local MouseMovedInStuds = (Player:GetMouse().Hit.Position-LastPosition).Magnitude
print(MouseMovedInStuds)
end
wait(1)
end
Sadly I cannot use mouse.hit for certain reasons, it is being used for something else.