Skip to content

Instantly share code, notes, and snippets.

View devSparkle's full-sized avatar

Ricardo Loureiro devSparkle

View GitHub Profile
@devSparkle
devSparkle / PolygonCenter.lua
Created August 26, 2022 11:02
Calculate Polygon Center
for _, Polygon: Model in next, game.Selection:Get() do
if not Polygon:IsA("Model") then continue end
local Center = Vector3.zero
local Children = Polygon:GetChildren()
for _, Child: BasePart in next, Children do
if not Child:IsA("BasePart") then continue end
Center += Child.Position
@devSparkle
devSparkle / NevermoreEngine.lua
Last active May 12, 2017 18:21
My own flavor of the Nevermore framework by @Quenty
--// Initialization
local RunService = game:GetService("RunService")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local ServerScriptService = game:GetService("ServerScriptService")
local Engine = {}
--// Variables