This file contains 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
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 |
This file contains 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
--// Initialization | |
local RunService = game:GetService("RunService") | |
local ReplicatedStorage = game:GetService("ReplicatedStorage") | |
local ServerScriptService = game:GetService("ServerScriptService") | |
local Engine = {} | |
--// Variables |