#Skinned Mesh NPC won’t face towards target
1 messages · Page 1 of 1 (latest)
Calculate the target position as a CFrame, then lerp
nvm, that wouldnt help
This is a pretty bad solution but it should work
im not really sure how your solution works yet so im not sure how to solve it
although you only give cframe.lookat 2 values instead of 3 it seems?
In the script I sent there is no line 104 tho
its because i commented my old code sorry i sent a screenshot of the line though
try changing that line to local tween = tweenService:Create(houndRootPart, TweenInfo.new(tweenSpeed), {CFrame = CFrame.lookAt(houndRootPart.Position, Vector3.new(position.X, houndRootPart.Position.Y, position.Z))})
wait no, this
local tween = tweenService:Create(houndRootPart, TweenInfo.new(tweenSpeed), {CFrame = CFrame.new(houndRootPart.Position, Vector3.new(position.X, houndRootPart.Position.Y, position.Z))})
alright it works as in he pathfinds towards me but he still wont rotate its the same as in my original clip
damm
i could try making a r6 model as i know it works with r6 models then disable collisions on my mesh and weld them together
although that feels more like a band aid solution
have you tried just using moveto?
would have the issue of if the players moving it'd be going to the players previous location i think
Oh