This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --!strict | |
| -- Sentry System | |
| -- Purpose: Modular automated turret system using Raycasting and State Machines. | |
| -- Architecture: Object-Oriented Programming (OOP) with a central Manager to handle the RunService loop. | |
| local RunService = game:GetService("RunService") | |
| local CollectionService = game:GetService("CollectionService") | |
| local Players = game:GetService("Players") | |
| local Workspace = game:GetService("Workspace") | |
| local Debris = game:GetService("Debris") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| local Players = game:GetService("Players") | |
| local ReplicatedStorage = game:GetService("ReplicatedStorage") | |
| local ServerStorage = game:GetService("ServerStorage") | |
| local RunService = game:GetService("RunService") | |
| local CollectionService = game:GetService("CollectionService") | |
| --// Settings | |
| -- quick config so i don't have to hunt for numbers later | |
| local Settings = { | |
| MinPlayers = 1, |