Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

What is the best way to make a monster travel through a maze randomly?

I'm going to make a boss battle, where a worm travels through a maze perfectly (As in it doesn't run into walls or try to go through them.) I don't need a code answer, just ideas on how I would do this.

All ideas accepted! I don't want this to become the next portal question. Help always appreciated!

4 answers

✓ Accepted answer
  • What you would Basically do to accomplish this

First you need your boss creature correctly made so it has the correct Motor6D's and your boss creature is welded/heldtogether properly so it will be able to move around and not fall about when unanchored. Then, you need to use Pathfinding which start point would probably be the Torso of your boss and you would probably want to put random invisible parts along your maze which will become the end points for your boss creature to move to. You'll also want to make the damaging some how and if you're going to add animations, you need correct Motor6D usage along w/ a HumanoidRootPart and Animation controller inside. This is the barebones of what you'd need to do!

  • Links that may help;

Learn about Joints

Learn about Pathfinding service

Learn about MoveTo for the Humanoid

Learn about animations

Learn about Touched event, Could use for damaging

Learn about randomness, could use for a more random pathfinding

1 comment

0

Thank you! this helps alot!

i would probably say use the pathfinding service. Make a script that randomly changes a value for the end of the pass wit the main part (toso ,ect.) of the creature the start of it

This discussion is preserved as it was. New answers, comments, and votes are closed.