Workshop.codes
Create

Centroid Of Players Last updated April 03, 2026

Description

Returns the average world position of all players in a given array or team, calculated as the arithmetic mean of their individual positions. Useful for centering camera rigs, spawning group effects, or evaluating team clustering.

Snippet

Centroid Of Players(All Players(All Teams));

Properties

Returns: Vector
Parameters: Players

Players
Type: Player, Default: All Players
The array of players whose positions will be averaged.

Workshop.codes