How do i make a player move in a zigzag motion?

  1. What do you want to achieve? i want to make a player move in a zigzag towards a point

  2. What is the issue? i dont know how to do it

  3. What solutions have you tried so far? i have searched the internet all over and i cannot find anything

i want the player (blue) to teleport to all ends of the line in green (the arrows) to reach the enemy destination (red) when a tool is activated

a bit like kaigaku from demonfall if you know that game and his move

how do i go about doing this? any help will be much appreciated

Use this module: Catmull-Rom Spline Class (Superior to Bezier Curve)

1 Like

im confused on how to make it be along the ground

1 Like

Use Humanoid:MoveTo()

Basically:

game.Workspace.DummyName.Humanoid:MoveTo(game.Workspace.point1.Position)
game.Workspace.DummyName.Humanoid.MoveToFinished:Wait()
game.Workspace.DummyName.Humanoid:MoveTo(game.Workspace.point2.Position)
game.Workspace.DummyName.Humanoid.MoveToFinished:Wait()
game.Workspace.DummyName.Humanoid:MoveTo(game.Workspace.point3.Position)

And keep going till you have reached your destination.

1 Like