Hello devs, I’m not sure why MoveTo isn’t working as it’s not moving. Can you please provide some feedback on how to fix this? Thank you!
And, it’s a local script!
Script:
local Humanoid = script.Parent:FindFirstChild("Humanoid")
local player = game.Players.LocalPlayer
wait(2)
Humanoid:MoveTo(player.Character.HumanoidRootPart.CFrame)
you are trying to make humanoid to move to it’s current location
try this code
local Humanoid = script.Parent:FindFirstChild("Humanoid")
local player = game.Players.LocalPlayer
wait(2)
Humanoid:MoveTo(player.Character.HumanoidRootPart.CFrame.Position + Vector3.new(10, 0, 0)
If you want the NPC to move to the player only on the player’s client, try using a LocalScript in the player itself instead through StarterPlayerCharacter to move the NPC.