I made this into a tool:
script.Parent.RayMaker.Changed:connect(function() local ray = Ray.new(script.Parent.RayMaker.Position,script.Parent.RayMaker.CFrame.lookVector*500) local hit, position = workspace:FindPartOnRay(ray) print (position) end)
But so far it's not outputting anything.