Ive been able to accomplish this in the past, but for some reason the code seems to make the part i want to rotate…not rotate properly
here is my code
-----------------
--Head Follow
coroutine.wrap(function()
while true do
task.wait(1)
if IR.Value == false then
local mag = (PPart.Position - splatModel.Splat_Head.Position).Magnitude
if mag <= 50 then
print("ermm")
TS:Create(neck6D, TweenInfo.new(1),{C1 = CFrame.new(neck6D.C1.Position, PPart.Position)}):Play()
else
neck6D.C1 = neckC1
end
else
end
end
end)()
I even tried CFrame.LookAt but the same result came out. Im not sure what the issue could be
Okay. So, for the orientation issue, you want to add .Rotation at the end of the target CFrame and multiply it by CFrame.Angle(0,0,math.pi/2) (might be different depending on how it’s rigged).
So the floating part is fixed, but the heads orientation is still an issue. My first thought was to switch “math.pi” to a different axis, but im not so sure