How can I make this pumpkin chase people in a maze? Pathfinder?

Hiya everyone. I’m creating a game where a scary pumpkin chases you. There’s a pic of the pumpkin below

So I got the script from youtube on how to make it kill and chase you. It kills the player perfectly fine when a player touches it or vice versa. (Script is posted below)

I am just having issues with the pumpkin not following the player. I’ve unanchored the pumpkin as well but still no movement. I am going to have more than one pumpkin in the mazes too

As you can tell I am no expert in scripting at all so any kind of help I would be very thankful

1 Like

It has to be a humanoid and the script does need some things to be setup in workspace but it does like 95% of the work for you. It’s easy to figure out what it needs to run

1 Like

aw okay so I am not able to just use a part then huh? also i appreciate the reply

1 Like

You can but it would be different from what I made. For parts I think it would just be tweening their position to the checkpoints position instead of using moveTo() you can search up tween service to learn about that

2 Likes

okay thank you soooo much for your help! im going to go ahead and use the info from you and test it out :smiley:

I’ll be back here if i need any more help. thanks again

1 Like