Hey. I'm looking for how to get the local player's mouse position in Vector2 value and not in Vector3. I will make sure to ACCEPT the helpful comment!
✓ ANSWER ACCEPTED
How do you get the local player's mouse's position in Vector2 value and not in Vector3 value?
1 answer
✓ Accepted answer
There are many ways you can do this, you can use the Mouse's X and Y properties, or UserInputService.
local Player = game.Players.LocalPlayer
local Mouse = Player:GetMouse()
print(Mouse.X, Mouse.Y)
local UserInputService = game:GetService("UserInputService")
UserInputService.InputBegan:Connect(function(Input, GPE)
if GPE then return end
print(Input.Position.X, Input.Position.Y)
end)
UserInputService.InputChanged:Connect(function(Input, GPE)
if GPE then return end
print(Input.Position.X, Input.Position.Y)
end)
UserInputService.InputEnded:Connect(function(Input, GPE)
if GPE then return end
print(Input.Position.X, Input.Position.Y)
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
https://developer.roblox.com/api-reference/property/Mouse/X https://developer.roblox.com/api-reference/property/Mouse/Y
Or this https://developer.roblox.com/api-reference/function/UserInputService/GetMouseLocation