I wanna implement a Custom MoveTo since my NPC doesn’t use a humanoid. What are the ways to implement this? Also I’ve tried using Tween Service but it doesn’t sit right with me.
Any help would be appreciated! Thank you!
I wanna implement a Custom MoveTo since my NPC doesn’t use a humanoid. What are the ways to implement this? Also I’ve tried using Tween Service but it doesn’t sit right with me.
Any help would be appreciated! Thank you!
Something like this should work
self.CFrame = self.CFrame + (self.CFrame.lookVector * (self.Speed * speedScale))
You are going to have to implement some sort of movement smoothing on the client side though as this alone will make it look like the NPC is just teleporting so using Lerp or Tweening, I would recommend using lerping
Use LinearVelocity, RenderStepped, or TweenService
TweenService is best if there is a fixed destination, RenderStepped or LinearVelocity if the destination is changing eg: following a player