game:GetService("RunService").RenderStepped:Connect(function()
if mouse.Hit then
RootPos = c.HumanoidRootPart.Position
if (RootPos - mouse.Hit.Position).Magnitude < 30 then
workspace.MeshPart.Position = Vector3.new(mouse.Hit.p.X,0,mouse.Hit.p.Z)
end
end
end)