I made an attempt to accomplish this:
local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
while true do
local bob = game.Workspace.Bob
bob.Position = Vector3.new(mouse.Hit)
end
I read that you need to use Mouse.Hit for it's position but I am probably wrong. What's the proper way to get the position of the mouse?

6 comments
Thanks, and the RenderStepped is a good idea. I didn't think of that at the time.
Yeah man. If I helped you, please accept this as an answer <3
It didn't work. I tried switching from CFrame = m.Hit to Position = m.Hit.p and same result
It works for me...
Use GetService("Mouse").Move instead of RenderStepped.
Nevermind, it works. My studio was just bugging out.