Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I revert the following script, character faces only 1 place?

Asked by 6 years ago

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)

Answer this question