How to disable the character auto-rotating with the camera while moving

I want to disable the character auto-rotating with the camera while moving, but I can’t seem to find any solution to this. I’ve tried going through StarterPlayer settings and countless forum posts, yet I can’t find a solution.

You can achive this by setting the CameraType to Scriptable and setting the camera’s CFrame to a position near the player continuously. For example: playerpos + Vector3.new(10, 10, 0)

3 Likes

Thanks, I’ll see if it works. (30303030)

It works on not auto-rotating the character with the camera, but now I can’t rotate it at all.

https://developer.roblox.com/en-us/api-reference/property/Humanoid/AutoRotate

2 Likes

issue is now the character doesn’t rotate at all when pressing WASD

I want to disable the character auto-rotating with the camera while moving

issue is now the character doesn’t rotate at all when pressing WASD

1 Like

I was sure my post was clear enough on my issue, but I guess not. What I mean is that when rotating my camera while the character is also moving the character rotates with the camera.

You can still rotate the camera with the arrow keys.

I was sure my post was clear enough on my issue

Anything but.

1 Like

There seems to be a kind of miscommunication going on here, I’ll try to be even more clear with a little video clip. bag1.tixte.co - roblox_studio_clip

You need to describe in full detail (without broken English) exactly what it is you’re trying to achieve.

1 Like

I did it in full detail. Let me explain it to you.

In the clip, it clearly shows the character auto-rotating with the camera when I rotate the camera.

what I want to achieve is

I want to disable the character auto-rotating with the camera while moving

Is that still not clear?

I want to disable the character auto-rotating with the camera while moving

issue is now the character doesn’t rotate at all when pressing WASD

Notice the contradiction here? ‘WASD’ are movement keys.

1 Like

Sorry, but I can’t see it.

By this:

I meant that the character doesn’t face the moving direction and it looks wonky as shown in this clip:

Sorry, but I can’t see it.

You want the character’s auto-rotation to be disabled while the character is moving but you want the movement keys to rotate the camera.

1 Like

No, I want the character to not rotate with the

camera

when I rotate the

camera

By ‘character’s auto rotation’ I’m referring to how the character rotates towards the camera. Humanoid.AutoRotate = false prevents the character from rotating with the camera.

Alright, I’ll try some of the different camera types. Thanks for sticking with me on this one.

either way that script actually helped me with a whole other problem, which by fixing that also fixed this problem. Thank you!

I’ll post it again.

local Game = game
local Workspace = workspace
local RunService = Game:GetService("RunService")
local Players = Game:GetService("Players")
local Player = Players.LocalPlayer
local Character = Player.Character or Player.CharacterAdded:Wait()
local Humanoid = Character:WaitForChild("Humanoid")
Humanoid.AutoRotate = false
local Camera = Workspace.CurrentCamera

local function OnRenderStep()
	local Pivot = Character:GetPivot()
	local X, _, Z = Pivot:ToOrientation()
	local _, Y, _ = Camera.CFrame:ToOrientation()
	Character:PivotTo(CFrame.new(Pivot.Position) * CFrame.fromOrientation(X, Y, Z))
end

RunService.RenderStepped:Connect(OnRenderStep)
1 Like