Skip to content

Instantly share code, notes, and snippets.

@Multi-Sama
Multi-Sama / TurretSys.Lua
Last active January 12, 2026 14:42
A Turret/Sentry System in Roblox
--!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")
@Multi-Sama
Multi-Sama / RoundLoops.lua
Last active January 7, 2026 12:32
A simple loop for a round based Roblox game in Lua
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,