hey so I want the player to face the same way the camera is faceing so its working just fine but how do I make it to not face in the up and down direction here is what I got

local Camera = workspace. CurrentCamera 
local HumanoidRootPart = game.Players.localPlayer.character.HumanoidRootPart

Camera.Changed:Connect(function(changed)
	HumanoidRootPart.CFrame = CFrame.new(HumanoidRootPart.Position, Camera.CFrame.LookVector  * 100000)
end)

1 comment

0

CFrame.fromMatrix(HumanoidRootPart.Position,Camera.CFrame.XVector,Camera.CFrame.YVector) should work, probably.