Files

15 lines
715 B
Luau

--!strict
local rs=game:GetService("ReplicatedStorage")
local H=require(rs.Hunter.Hints)
local Rules=require(rs.Hunter.TeamDeathmatchRules)
local S=require(rs.Hunter.Strings).teamDeathmatch
return {candidates=function(match: Instance, player: Player): {H.Hint}
if match:GetAttribute("RoundStage")~="FinalPush" then return {} end
local own=player:GetAttribute("ArenaTeam")
if own~="Blue" and own~="Orange" then return {} end
local rival=if own=="Blue" then "Orange" else "Blue"
local n=Rules.chaseGap((match:GetAttribute(own.."Score") :: number?) or 0,(match:GetAttribute(rival.."Score") :: number?) or 0)
if n then return {{key="tdm_gap",text=string.format(S.chase,n),priority=60,ttl=.4}} end
return {}
end}