You can see that the zombie looks weird, I removed MoveTo() because its very bad when zombie spam,
CFrame.lookat() makes it look weird as it stares down the node, and sometimes gets too buggy, how do i fix this?
What does your code look like? What are you using to move the zombie?
Because if I remember correctly, using Pathfinding you can just make it follow the path all the way to end. If this doesn’t work just reply to me and I’ll actually try to script it out myself.
I haven’t tried pathfinding service enough to actually say it works.
I would recommend looking through this and then deciding if you think it’s better to use TweenService or PathfindingService.
The link below will lead you to Character Pathfinding.
Tween helps, but my NPC runs on made waypoints, and its a tower defense type. so it doesn’t need pathfinding.
but i don’t know how to tween direction without changing rotation.
What is the issue with changing the orientation of the NPC?
i don’t know how to tween its orientation so it looks like its turning to a part
You can just make it look to the part by using
local zombie = --zombie
local zombiePivot = zombie:GetPivot()
zombie:PivotTo(CFrame.lookAt(zombiePivot.Position, node.Position, zombiePivot.UpVector))
Also, it is ill advised to have a script per zombie, as that will decrease server performance if there are many.
It makes it look like if its a game glitch where the character clips the floor intensively.