How to use "SetText" with a "var" for more than one player?

FOR EXAMPLE:

using { /Fortnite.com/Devices }
using { /Verse.org/Simulation }
using { /UnrealEngine.com/Temporary/Diagnostics }
using { /UnrealEngine.com/Temporary/SpatialMath }

game_manage_device := class(creative_device):

    
@editable
ButtonUp: button_device = button_device{}

var MyAgentVar: [agent]int = map {}

UpCount(Agent:agent):void=:
if {set MyAgentVar[Agent] += 1}

OnBegin<override>()<suspends>:void=:

ButtonUp.InteractedWithEvent.Subscribe(UpCount)


Try to Add this in upcount

if(not MyAgentVar[Agent]):
   if(set MyAgentVar[Agent]=0){}

That should see if its not initialized and if its not to initialize it with a value of 0