Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Pathfinding flying (triple jumping)?

Asked by 5 years ago

So yeah i was following path finding tutorials and messing around and well my npc decided to fly / triple jump did i write my code wrong or is it just roblox glitching / i placed walls wrong. GIF There are 2 invis walls on each side no others Code:

01local PathfindingService = game:GetService("PathfindingService")
02 
03local plr = script.Parent
04local humanoid = plr.Humanoid
05local destination = game.Workspace.End
06 
07local path = PathfindingService:CreatePath()
08 
09local waypoints
10local currentWaypointIndex = 0
11 
12local function showwaypoints()
13    local max = #waypoints
14    for i, v in ipairs(waypoints) do
15        print(i)
View all 78 lines...

also if you've got any script improvements / anyways to fix it please comment / reply!

Answer this question