Skip to content

Instantly share code, notes, and snippets.

View outerfaith's full-sized avatar

outerfaith outerfaith

  • West Palm Beach, Florida
  • 15:56 (UTC -04:00)
View GitHub Profile
@outerfaith
outerfaith / placement.luau
Created May 3, 2025 02:30
tower placement
--!optimize 2
--!native
-- Services
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local RunService = game:GetService("RunService")
local Players = game:GetService("Players")
-- Dependencies
local Quaternion = require(ReplicatedStorage.Modules.Quaternion)
@outerfaith
outerfaith / entitysystem.luau
Last active May 3, 2025 02:36
entity system
--!optimize 2
--!native
-- Types
type EnemyStats = {
max_health: number,
speed: number,
hidden: boolean,
}
--!optimize 2
local Players = game:GetService("Players")
local ServerStorage = game:GetService("ServerStorage")
local assets = ServerStorage:WaitForChild("assets")
local morphs = assets:WaitForChild("morphs")
local playerMorphing = {}
--[[
We don't like it when people run into walls
why was this running every heartbeat what is wrong with you zynx
Authored by: VortexReanimated
Authored on: 10/8/2024 @ 12:17 AM EST
]]
--!native
--!optimize 2