Take this as a question and not a request.
How would I detect when someone captures a flag on a team because I'm making a CTF gamemode. What events would I use to achieve this.
My leaderboard script
local stats = {"value", "Omegite", "Captures"}
game.Players.PlayerAdded:connect(function(player)
local leaderstats = Instance.new("Model", player)
leaderstats.Name = "leaderstats"
for _, stat in pairs(stats) do
Instance.new("IntValue", leaderstats).Name = stat
end
end)

3 comments
What makes the flag do anything?
when a person on a team caps it adds 1 to their team score
i dont really know what you mean