--!strict local Types = require(script.Parent.Parent.Types) local Common = require(script.Parent.Parent.Common) local Hunter=game.ReplicatedStorage.Hunter local Rules=require(Hunter.TeamDeathmatchRules) local Kinds=require(Hunter.EventKinds) local function start(ctx: Types.ModeContext): Types.ModeInstance return Common.instance(ctx, {kill = function(player: Player) local side = Common.sideOf(player) if not side then return end ctx.scoring.add(side, 1, "Elimination", player) local streak=player:GetAttribute("StreakKills") if typeof(streak)=="number" and Rules.announce(streak) then ctx.events.fire(Kinds.Streak,{side=side,userId=player.UserId,text=player.DisplayName,value=streak}) end end}) end return {id = "TeamDeathmatch", usesMap = false, start = start}