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

Include jumping in pathfinding?

Asked by
KoreanBBQ 301 Moderation Voter
9 years ago

Roblox's pathfinding service considers your ability to jump. But what's the best way of getting jumping to work in pathfinding?

Best I could do is making the character jump when the Y difference between 2 consecutive point is greater than 1, but that means the character won't jump over same level gaps.

Here's what I wrote:

if old and (point.Y - old.Y) >= 1 then --old being the previous point, point being the next one
    player.Character.Humanoid.Jump = true
end

Answer this question