Skip to content

Instantly share code, notes, and snippets.

View reninvicta's full-sized avatar
💭
meow meow

ren reninvicta

💭
meow meow
View GitHub Profile
@reninvicta
reninvicta / GunService.luau
Created February 14, 2026 06:01
Client-side code for managing currently equipped guns. Designed to be integrated with my `ImperialTech-Core` framework.
--!nocheck
local ContextActionService = game:GetService("ContextActionService")
local Players = game:GetService("Players")
local Service = {}
Service.InputEnabled = false
Service.Equipped = {}
Service.IsAiming = false
@reninvicta
reninvicta / LookService.luau
Created February 14, 2026 06:00
Client-side code of a "character follows the mouse" system. Designed to integrate with my `ImperialTech-Core` framework.
--!nocheck
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local Player = Players.LocalPlayer
local Mouse = Player:GetMouse()
local Camera = workspace.CurrentCamera
local origC0s = {}
@reninvicta
reninvicta / RadioServer.lua
Created October 8, 2025 18:42
The server-side code of a radio system.
local GroupService = game:GetService("GroupService")
local TextService = game:GetService("TextService")
local Players = game:GetService("Players")
local Teams = game:GetService("Teams")
local radio = {}
local plrGroupCache = {}
local messageCache = {} -- store the last 4 messages for each channel
local globalMessageIndex = 1