Whats wrong with this script?
repeat wait() until game.Players.LocalPlayer.Character
game.Players.LocalPlayer.Character.Torso.Neck.MaxVelocity = 0.3
function turnheads()
while true do
wait()
if game.Players.LocalPlayer.Character then
if game.Workspace.CurrentCamera.CameraSubject == game.Players.LocalPlayer.Character:FindFirstChild("Humanoid") then
camf = Vector3.new(game.Workspace.CurrentCamera.CoordinateFrame.X,game.Workspace.CurrentCamera.CoordinateFrame.Y,game.Workspace.CurrentCamera.CoordinateFrame.Z)
lv = game.Players.LocalPlayer.Character.Torso.CFrame.lookVector
torsop = game.Players.LocalPlayer.Character.Head.Position
game.Players.LocalPlayer.Character.Torso.Neck.DesiredAngle = -(((torsop - camf).Unit):Cross(lv)).Y
end
end
end
end
turnheads()