The title gives a brief idea of what I am seeing, I am fixing the 2013 version of Kool Killer and I wanted to fix the head-turning script but I came across a funny thing where it doesn’t work with the new Roblox animations but it works with the old ones. Here are some videos that show this. How can I make this work with new Roblox animations with r6?
Old Animations:
robloxapp-20210318-1435262.wmv (1.7 MB)
New Animations:
robloxapp-20210318-1436085.wmv (1.2 MB)
Here is the script to see what we are working with.
repeat wait() until game.Players.LocalPlayer.Character
game.Players.LocalPlayer.Character.Torso.Neck.MaxVelocity = 0.3
function turnheads()
while true do
wait(0.15)
if game.Players.LocalPlayer.Character then
if game.Workspace.CurrentCamera.CameraSubject == game.Players.LocalPlayer.Character:findFirstChild("Humanoid") then
local camf = Vector3.new(game.Workspace.CurrentCamera.CFrame.X,game.Workspace.CurrentCamera.CFrame.Y,game.Workspace.CurrentCamera.CFrame.Z)
local lv = game.Players.LocalPlayer.Character.Torso.CFrame.lookVector
local 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()