I need to track the players mouse, preferably seperately on the X and Y axis to get the real time data which i’ll use to make changes to objects in the workspace.
How do I do this?
I understand it will probably involve UserInputService, but i’m not educated in what area to use.
Any help is appreciated, how would I go about doing this?
Alright, makes sense. How would I use this function in a practical environment? do I need to input the x,y arguments myself or are they pre defined. I’m looking to move a part in workspace based on the Y axis value if that context is of any use.
To gie a bit more detail on what @LiegePalpatine mentioned, it must be in a localscript since LocalPlayer, and for your use, I think the Move event if what you require. The Mouse Object also contains 2 properties for the x and y coordinates which are .X and .Y