I am making a certain tool that I want to have a little gui pop up that will start going up from the mouse but no idea of how to find the mouse position
✓ ANSWER ACCEPTED
How do I check the mouse position on screen?
2 answers
✓ Accepted answer
I think you're looking for this: https://developer.roblox.com/en-us/api-reference/property/Mouse/Hit
Use a LocalScript for this:
local LocalPlayer = game:GetService("Players").LocalPlayer
local Mouse = LocalPlayer:GetMouse()
local MX, MY = Mouse.X, Mouse.Y -- Position on screen.
To check...
while true do
print(MX, MY) -- prints position on output
wait(.05)
end
More info here: https://developer.roblox.com/en-us/api-reference/class/Mouse
This discussion is preserved as it was. New answers, comments, and votes are closed.

3 comments
It works with cframe not the pixels on the screen, or i am just an idiot
You want the Gui to be above the mouse, right? Try using the X and Y values
oki