AI in Client [Need Help]

anyone has an idea how to make ai client like this
image

I have tried many ways but its so buggy or lets say not really working because of physics i don’t have any idea how I can make it

I wanna achieve like every players has his own AI,

anyone know what is the best way to do it please reply thank you so much

the bug is, when the the player1 is chased by the ai, the player two could see it

1 Like

What does he do? Does he chase the player and fire the cannon when he’s close enough, or randomly?

1 Like

its not about the pic i mean i have my own ai and the ai isnt doing good i am finding other way to do it because my ai is buggy so that pic is just a referrence i wanna achieve like when u trigger that part or touch the part the killer ai appear and kill you with jumpscare but in my case when i touch the part the ai chase me but the other player that touch that part is gonna jumpscare too

So your saying that when someone else triggers it, it goes for you instead?

no, when the ai chases the player, I can see that the player is chasing

Parent your AI to ReplicatedStorage and name it AI

In a LocalScript in StarterPlayerScripts:
game.ReplicatedStorage.AI:Clone().Parent = workspace
Then, set all script runcontexts in your AI to Client.

Each player will now have their own.

yeah that is what i did and it works but the problem is when the other player got chase and jumpscare i got jumpscare too

Good Lord, please stop referring to it as AI…

2 Likes

Then check if the player who is being chased is the same as the person who is about to be jumpscared and then set the jumpscare to that person.

If each client gets their own copy, then make it only target and chase the client it is running on instead of targeting every player in the game. Also make sure other players can’t trigger the jumpscare by accidently touching it, have it where it can only jumpscare when it catches you.

I already fix the problem thank you guys for your time