[J STUDIOS] (THE MIMIC AI REMAKE) J_AIv9 RELEASED (Beta roll-out)

It’s an AI system for horror games, very similar to the type of AI system The Mimic uses but he put his own twist to it with extra features and whatnot.

2 Likes

Sorry for mate replies but here I am, as @EchoWinds have said, It is an artificial intelligence that roams around a map and chases over players when seen. This AI (which I forgot to mention) is based on the game “The Mimic”.

1 Like

If you’ve heard about “The Mimic” on ROBLOX, It’s basically a roaming AI that roams around a map, and chases a player when seen.

1 Like

Alright, I edited the post’s title to clear up possible confusions might as well edit the whole post to credit The Mimic.

1 Like

One. AIs don’t even make decisions on their own. Two. They’re programmed to do something on command. What’s this about? Doing something on command.

That’s incorrect. That would fall under machine learning.

However, Machine learning is a subset of AI. But AI doesn’t necessarily mean use large amount of data.

1 Like

I mentioned your post so he can implement it in his Mimic ai
Infact, this mimic ai isnt human-like smart, this wouldn’t be considered as an ai.

I would have considered it as AI if it was in terms of algorithms though :confused:

Yes it is.

What you are probably thinking is generative AI. Whereas Artificial Intelligence is any type of system that replicates human like behavior. Reacting to the world and solving problems such as pathing is a human behavior, meaning all NPC’s in games are considered AI.

1 Like

AI is a broad blanket term for algorithms used to mimic some form of intelligence, whether for Chatbots or NPC enemies.

You keep referencing Machine learning, which is part of AI but isn’t AI as a whole.

1 Like

To clear up some confusions, I specified it as “AI” as it is what most people call this especially from “The Mimic”. This AI does not learn through a global data - it learns from a data preserved in the AI script whenever an error occurs.

To add, this AI is mainly made for horror games - theoritically, you can still use it in non-horror games in some way, just depends on how you would use it.

Howdy,

Can you provide a .rbxl with some examples map situations to see how it performs. Perhaps even an example of a bad place where they get stuck , or ‘learn not to’…

Also is it a line of sight only to attack or it knows you are behind a wall? from position data? Is that tunable?

Can this have way points?

If yes, can the waypoints in game be deleted and it does not go to them?

Can the waypoints be moved in game and it will go only to the new potions?

Can new waypoints be add in game?

Can it be tuned to run away if you whack it?

Can it whack you and run away?

Can it have low health and really really run away?

Are the AI npcs tunable to have individual characteristics?

How is this different then a pathfinding AI npc that attacks you?

If there are multiple AI’s do they bunch up, or can the move around each other and attack you from different positions?

Why do you need a camera in the AI?

Examples rbxl or editable place ?

Thanks!

2 Likes

The AI is simply a roaming AI,

To break this down, the AI basically goes:

Roam to a random patrol part → Check for possible players that are seen

if a player is seen then → Chase the player.

if the player is either;

  • Dead
  • Farther away from the AIs vision (distance)
  • Unreachable
  • Is in a safe region

then → Stop chase

Now for your other questions

If there are multiple AI’s do they bunch up, or can the move around each other and attack you from different positions?

Yes it supports multiple AI (v9’s client however is not optimized and could produce lag when used in multiple AI. This could be fixed in v10)

How is this different then a pathfinding AI npc that attacks you?

This AI has a decent amount of configurations that you could change depending on your wanted AI’s personality (or mind)

Why do you need a camera in the AI?

This is for the jumpscare. If you’ve seen The Mimic, their AI has jumpscares so thats why a camera part is required

Is it tunable?

Yes, as I’ve stated earlier, theres a decent amount of configurations that could change your NPC’s mind

Can this have way points?

If yes, can the waypoints in game be deleted and it does not go to them?

Can the waypoints be moved in game and it will go only to the new potions?

Can new waypoints be add in game?

I don’t understand and I’m quite confused. What do you mean by this?

Can it have low health and really really run away?

For now, It doesnt have a respawn system when the AI is destroyed or died.

Also is it a line of sight only to attack or it knows you are behind a wall? from position data? Is that tunable?

No it can only see the player when the player is not blocked by a wall. However, the AI has a “hearing” feature.

Let’s break this down

The AI patrols → When a player moves, it fires a hear detection and the AI stops patrol mode and → Hears the player and pathfinds to the player’s position.

Now just to add, the AI has an anti-stuck system. Whenever the AI gets stuck, it either moves to a position where a pathfind could be sufcessful, otherwise it teleports to its spawnpoints. When an antistuck function occurs, the AI learns where to avoid places where the AI got stuck to prevent it.

1 Like

Hi thanks for the information.

It sounds like it does not use waypoints, if you are saying it ‘Roam to a random patrol part’ (or did you mean position) ? If it randomly goes to a part, then perhaps it has waypoints.

If it did you waypoints, some AI / NPC systems, when the game is first run, has a table of all the waypoints. Then this table is static… meaning lets say a way point is a part that is a chest. If that chest gets open and deleted. the position is still in the table, and it will still go to where the chest was. Other more advanced waypoint finding systems will update all the time the waypoints and if they are deleted, not go to them, or if they are moved , then they will update the position and go to the new position.

1 Like

Do you mean patrol points? Well if you do, It does have Vector3 points that is stored within the AI. This does not get removed nor changed.

A good feature I added though is called “Dynamic Waypoints” which are waypoints that are added whenever it; sees, hears, kills, stops chasing a player. This makes the AI a little “smart” and makes the AI “learns” where most players are seen and the AI will patrol there.

And in my AI, the patrol parts automatically gets deleted and the Vector3 data of those parts are stored in a table.

How can you add real time, Dynamic Waypoints? like lets say I drop a chest during the game, players know where the chest is dropped so I want the AI to go there also…

then to what is the syntax to remove the chest from the AI table so if the chest is opened, it will not go there any more?

Interesting. The Dynamic Waypoints feature is handled by the main AI script. The script adds a Dynamic Waypoint whenever an action is made.

The current actions are;

AI Heard a player
AI Saw a player
AI Killed a player
AI Stopped chasing a player

The dynamic waypoint adder function is

function Components.GenerateDynamicPoint(position : Vector3)

This function also automatically optimizes dynamic waypoints by merging them into one waypoint to prevent clumps

Now if you want to add a Dynamic Waypoint when a chest is opened, there is another feature my AI has, which is Custom Mechanisms which enables you to add custom mechanics to the main AI

for example you want to detect whenever a chest is opened:

-- This is an example of a custom mechanism script structure (similar to AIENGINE by
-- Sythivo, make sure to research about that!
-- We will run the mechanism on start

-- ai.MechanismsSource script:

local MechanismHandler = require(script.Parent.Parent.Components["ai.MechanismHandler"])

MechanismHandler.runOnStartUp("ChestDetector")

-- ChestDetector mechanism script:

local Components = require(script.Parent.Parent.Components["ai.Components"]

return function()
    chest.Opened:Connect(function()
      Components.GenerateDynamicWaypoint(chest.Position)
    end)
end

Now this is just a sample script

The generate dynamic waypoint function automatically removes dynamic waypoints in a configurable matter of seconds

DYNAMICWAYPOINTS = {

		enabled = true,
		lifeTime = 45,
		listenTo = {

			heardPlayer = true,
			sawPlayer = true,
			killedPlayer = true,
			stopChased = true,

		},
		optimiation = { --ignore the misspelling

			distance = 60,
			startingNumber = 5,

		}

	},
1 Like
Bug fixes
As of v9.0.4
  • AI Stuttering when the AI is near the player (when chasing)

As of v9.1.4

  • Animations are now front-end
  • Animations are now easily configurable
  • Client sounds are now easily configurable