So, I am making a basic round based horror game where a player haves to survive a randomly chosen AI killer. Anyways I don’t know how to make an AI so i came here to ask, How do I make a killer Ai?
The genuine answer is that theres many types of AI’s and nearly any ‘behavior’ can be programmed, and it depends on what you want out of your “AI”
The simple answer is that you use a the pathfinding service to find a path from the ai’s character model to the killers target, and then invoke some means to transport your character model along the returned path (Commonly MoveTo()
via the humanoid) perhaps while playing an anmation or something.
As Niveum said, you can use the MoveTo() function to move your killer to the nearest humanoid, or if your map is more complex, you may want to invest in a pathfinding system.
I assume this is your first time building an AI system. You’re better off using the free assets store. There are plenty of good usable scripts out there. I don’t recommend beginners start with AI systems.
A simple chaser AI should get you started on the free store. Focus on building the map and getting the game working and making it playable.
If you really want to work on something AI. Grab a chaser AI and modify it yourself.