Hello SH, recently I've been trying to create a script where your head would turn to where ever your camera's position was since all the free modeled scripts are now broken because of ROBLOX's animations update. I would like some help on how to create this script. Here's the old broken code if you need it:
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()

1 comment
If that script was to be run inside of a tool and was a script, make it a localscript and see what happens.