dist = length; closest = pl; end end concommand.Add("attackMacro",AttackMacro)