I can't think of a solution to stopping this:
local plr = game.Players.LocalPlayer
local m = plr:GetMouse()
game:GetService("RunService").RenderStepped:connect(function()
local bob = workspace.Bob
if bob then
bob.Position = m.Hit.p
m.TargetFilter = bob
m.Button1Down:connect(function()
--?? What would stop the above
end)
end
end)
I tried changing the conditions to the "if bob then" for a loop but that did nothing.

3 comments
Are you asking what would stop the m.Button1Down:connect(function() end) ???
I'm asking what would end the .RenderStepped function - that would be put in the Button1Down function
I posted an answer.