I am trying to pass the Vector3 position of the mouse from the client to the server. I dont want to use the Mouse object from the player since it has been “superceded” by UserInputService.
My basic problem is, I can’t find anything that replaces the Mouse.Hit property, I tried InputObject.Position but this is actually the mouse’s screen position (x and y only) rather than the 3D world position (x, y, AND z).
Here’s the code I currently have (using input.Position):
UIS.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 then InputEvent:FireServer('MouseDown', input.Position) end end)
Again, to reiterate, I know that I could use Mouse.Hit.Position for this. I am trying to avoid using the Mouse object.