move = game.Workspace.NPC.Humanoid while true do move:MoveTo(13, 0.5, -8) wait() function MoveToFinished () move:MoveTo(44, 0.5, -21) function MoveToFinished() move:MoveTo(13, 0.5, -27) function MoveToFinished() move:MoveTo(-34, 0.5, 55) function MoveToFinished() move:MoveTo(-1, 0.5, -24) end end end end end
it says Unable to cast value to Object
Ur functions parenthese was i the wrong place
p = game.Workspace.good.Position move = game.Workspace.NPC.Humanoid while true do game.Workspace.NPC.Humanoid:MoveTo(p) wait() function MoveToFinished () move:MoveTo(10,0,40) end end