123
This commit is contained in:
1 parent
1d667306da
commit
11d5404f8f
7 files changed
+176
-84
No files matched your search
@@ -19,6 +19,11 @@ local VOTE_SECONDS = 15
|
||||
local TEAM_REVEAL_SECONDS = 1.05
|
||||
local TEAM_LIMIT = Hosting.MaxPlayers // 2
|
||||
local hosted = Hosting.isReserved()
|
||||
local hostedExit = if hosted then Instance.new("BindableEvent") else nil
|
||||
if hostedExit then
|
||||
hostedExit.Name = "HostedArenaExit"
|
||||
hostedExit.Parent = script
|
||||
end
|
||||
local modeRandom = Random.new()
|
||||
|
||||
local function makeTeam(name: string, color: BrickColor): Team
|
||||
@@ -402,6 +407,7 @@ leave.OnServerEvent:Connect(function(player: Player)
|
||||
local root = player.Character and player.Character.PrimaryPart
|
||||
if match.engine then match.engine.leaving(player, root and root.Position, workspace:GetServerTimeNow()) end
|
||||
sendToLobby(player)
|
||||
if hostedExit then hostedExit:Fire(player) end
|
||||
end)
|
||||
|
||||
local function tryJoin(player: Player, match: Match, side: Side, now: number): string
|
||||
|
||||
Reference in new issue
Block a user