This basically messes with the character, how do I revert this function?
mouse.Move:connect(function() local Character = localPlayer.Character local rootPart = Character:FindFirstChild("HumanoidRootPart") rootPart.CFrame = CFrame.new(rootPart.Position, mouse.Hit.p*Vector3.new(1,0,1) + rootPart.Position*Vector3.new(0, 1, 0)) end)