Move To Isn't Moving Humanoid?
I was testing out Path Finding Service, and make the dummy get past a maze, I used this code:
01 | local PathFind = game:GetService( "PathfindingService" ) |
02 | local path = PathFind:CreatePath() |
03 | local humanoid = script.Parent |
04 | path:ComputeAsync(game.Workspace.Maze.Start.Position, game.Workspace.Maze.End.Position) |
05 | local wayPoints = path:GetWaypoints() |
06 | for i, waypoint in pairs (wayPoints) do |
07 | local part = Instance.new( "Part" , game.Workspace) |
08 | part.Position = waypoint.Position |
10 | part.BrickColor = BrickColor.new( "Institutional white" ) |
11 | part.Material = Enum.Material.Neon |
12 | part.Size = Vector 3. new( 1 , 1 , 1 ) |
14 | part.CanCollide = false |
15 | humanoid:MoveTo(waypoint.Position) |
16 | humanoid.MoveToFinished:Wait() |
but the dummy didn't move, and there's no errors. Please help