I wan’t to make it so if the player wants to face a direction, then he faces it directly and quickly(in other words change the speed for changing directions?). is there any way to do this?
for comparison:
this is my case:
here’s what i want:
help is appreciated!
solved by this:
RunService.Stepped:Connect(function(_, dt)
local moveDirection = humanoid.MoveDirection
if moveDirection.Magnitude > 0 then
local lookDirection = Vector3.new(moveDirection.x, 0, moveDirection.z).Unit
local targetCFrame = CFrame.lookAt(rootPart.Position, rootPart.Position + lookDirection)
rootPart.CFrame = rootPart.CFrame:Lerp(targetCFrame, dt * ROTATION_SPEED)
end
end)