scoreboard players set @s generic_timer 1200
tag @s remove new

title @a[distance=..250] times 5 70 5
title @a[distance=..250] subtitle ["",{"text":"Everyone obtained a Railgun","color":"yellow"}]
title @a[distance=..250] title ["",{"text":"RAILGUN MAYHEM","color":"aqua"}]

execute as @a[distance=..250] at @s run function pctf:logic/items/railgun/give