The npc move to the part in server script but when I use the exact same code in local script the npc doesn’t move at all.
My local script is in startergui and humanoidrootpart is unanchored.
I have also tried
local model = game.Workspace:WaitForChild("Swordman")
local humanoid = model:WaitForChild("Humanoid")
local part = game.Workspace:WaitForChild("TestPart")
model.Humanoid:MoveTo(part.Position)
but it doesn’t work too.
I have no idea how to fix this problem.
local scripts only work in the player character or places related to the player like, gui and tools i guess!
I mean the local script need to be inside of these places, they still can move your npc, just change the his place