how do you deflect in roblox stealth

by Mossie O'Keefe 6 min read
image

How to make a stealth system

i’m switching to Knit! I’m sorry for everyone who learnt AGF for this post : ( ( next thing: making the bars in the enemies’ position, and making them the smaller the more distant they are THIS IS A WORK IN PROGRESS! POST LAST EDITED: 24/04/2021 PROJECT LAST EDITED: 11/05/2021 Henlo, fellow humans! Zamdie here, and I’ll guide you through this tutorial! ☆*:.。.o (≧▽≦)o.。.:*☆.

1: Before we start

I’m going to use AeroGameFramework because it makes everything easier (─‿‿─). You don’t have to use it, but I’ll be explaining stuff on it (don’t worry, I’ll include sections to explain what to do if you aren’t using AGF (ノ_<。)ヾ (^▽^) ).

2: Setting up

I’m gonna make it OOP. Why, you ask ? Because we can have one controller script and a module to handle all the logic. (´• ω •`)

4: Coding the detection bar

Ladies and gentlemen, fasten your seatbelts brains because we’re going to experience a turbulence. Really.

5: Guard routes - pathfinding

First things first, create a service named EnemyService under Server: Now make a folder called waypoints in Workspace, and then folders with the names of the enemies and the number. Now that’s done, let’s code the plate we’re going to work with:

image