Help making the head follow the other way

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    i wanted to make the head follow the other way and not the camera from the back (the camera where u watch the chacater)

  2. What is the issue? Include screenshots / videos if possible!
    video:

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    no cuz idk how to code :c

After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!

this is a script
script.Parent.LookCamera.OnServerEvent:Connect(function(mh,CameraDirection52)
	if Player:FindFirstChild("Humanoid") then
		if Player:FindFirstChild("Humanoid").Health ~= 0 then
	Player.HeadLookPosition.Value = Vector3.new(CameraDirection52.X,CameraDirection52.Y,CameraDirection52.Z)
	end		
		end
end)

this is  a local script
repeat wait(.1)
	
until game.Players.LocalPlayer.Character:FindFirstChild("Head")
game["Run Service"].RenderStepped:Connect(function()
local camera = workspace.CurrentCamera.CFrame.Position  
	local camera52 = workspace.CurrentCamera  

	script.Parent.LookCamera:FireServer(camera)
end)

any help would be appreciated :happy3:

2 Likes

* CFrame.fromOrientation(0, math.pi, 0)
To rotate a part 180 degrees around the Y-axis. If you’re still stuck provide the code where the head’s position is set.

2 Likes

Its a value, :b not a “neck” c0 c1 thingy
wait 1 sec

i tried doing

			Player.HeadLookPosition.Value = Vector3.new(CameraDirection52.X,CameraDirection52.Y,CameraDirection52.Z) * CFrame.fromOrientation(0, math.pi, 0)

it didn’t work :c
i also tried

	local camera = workspace.CurrentCamera.CFrame.Position * CFrame.fromOrientation(0, math.pi, 0)

but it still dont work

wait it worked theres was another code on the script where the head will follow and the code is
camPart.CFrame = CFrame.new(camPart.Position,Player.HeadLookPosition.Value) * CFrame.fromOrientation(0, math.pi, 0)

thanks for the help
+1 solved
but i still have another glitch…