CustomTeams Documentation / API

Custom Teams - Documentation / API

API will be updated if there is anything added or removed!

Note: All the functions of this module must be called from a ServerScript.

- Module requirement

local _CustomTeams = require(7489478333)

- ___.DebugMessages

Optional. If true then sends debug messages. (Tip: Turning it off will be a good idea, since there are a lot of debug messages.)

___.DebugMessages = false; -- True by default.

- ___.new(infoTable)

Adds a new team. Needs a table with 2 information; Name, TeamColor.

local BlueTeam = ___.new( -- Optional to set as a variable.
	{
		["Name"] = "Blue";
		["TeamColor"] = Color3.fromRGB(0, 150, 255);
	}
)

- ___:Insert(Player, Team)

Adds the player into the team given in the second argument.

SomeRandomRemoteEvent.OnServerEvent:Connect(function(player)
    ___:Insert(player, "Blue")
end)

- ___:Remove(Player)

Removes the player from the team they’re in.

SomeRandomRemoteEvent2.OnServerEvent:Connect(function(player)
    ___:Remove(player)
end)

OP (Original Post)