Character Rotate Towards Camera

Im trying to make a movement system and I was wondering how to make the humanoidrootpart tween towards their camera

Could you elaborate more on what you’re trying to achieve?

Im trying to make it so wherever the player is looking, the character automatically rotates in that direction, kind of like a homemade shiftlock, but tweened.

1 Like

this is my current code

local Tweens = game:GetService("TweenService")
local Run = game:GetService("RunService")
local Players = game:GetService("Players")
local Player = Players.LocalPlayer
local Character = Player.Character or Player.CharacterAdded:Wait()
local HRP = Character:WaitForChild("HumanoidRootPart")
local Mouse = Player:GetMouse()

Run.RenderStepped:Connect(function()
	local Tween = Tweens:Create(HRP, TweenInfo.new(0.5,Enum.EasingStyle.Circular,Enum.EasingDirection.Out), {CFrame = CFrame.lookAt(HRP.CFrame.Position, Vector3.new(workspace.CurrentCamera.CFrame.X, HRP.CFrame.Position.Y, workspace.CurrentCamera.CFrame.Z))})
	Tween:Play()
end)

but it does this
robloxapp-20230211-2220178.wmv (1.4 MB)

faces the opposite way!!

Unfortunately I cannot open .wmv files on my Macbook without converting it.

However, I believe this may help you achieve what you want: SmoothShiftLock [Module] :slight_smile:

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.