I’m wondering how I can make a charger zombie that will charge at the player in one direction (unable to change direction while zombie is charging) what is the best way to accomplish this?
1 Like
Just get the position you want it to charge to and then do :MoveTo().
Not much more needed tbh
1 Like
and increase it’s walkspeed for the charge duration right?
If thats what you want then yes
1 Like
Basically. Since you want it to not change directions, I’m assuming it’ll be like something where it’ll run at the player, and keep running in that direction even if they move out of the way. So, I’d approach this problem kind of like this:
- Make a CFrame using CFrame.lookAt to create a CFrame at the charger’s current position, looking at the player’s current position.
- Move the CFrame forward by 50 or so studs (however far you want them to charge)
- Use Humanoid:MoveTo() to have the charger run there (to the CFrame’s new position), with increased walk speed or which ever effects you want.
2 Likes
Thank you for this additional help, I’ll use this
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.