Prop following closest Player

I have been trying to get this to work for a couple of days now but I can’t seem to figure it out. I have succeeded that the prop follows the instigating player by pressing the blue remote device, but I’m trying to get the prop to follow the closes enemy. Here’s the code for following the instigating player I would appreciate help because I’ve been at this for so long now

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



spawncloud := class(creative_device):

    @editable
    CloudProp : creative_prop = creative_prop{}

    @editable
    SignalRemoteBlue : signal_remote_manager_device = signal_remote_manager_device{}


    @editable
    MaxDistanceToPlayer<private> : float = 5.0

    HandlePrimaryButton( P : agent) : void =
        if(F := P.GetFortCharacter[]):
            spawn {DoFollowPlayer()}


    DoFollowPlayer()<suspends> : void = 
        loop:
            vector5 := vector3 {X:= 0.0, Y:= 0.0, Z:= 350.0}
            if(PlayerList := GetPlayspace().GetPlayers(), FortniteCharacter := PlayerList[0].GetFortCharacter[]):
                PlayerPosition : vector3 = FortniteCharacter.GetTransform().Translation
                CloudProp.MoveTo(PlayerPosition + vector5, rotation{}, 0.1)
            else:
                break
                    
    OnBegin<override>()<suspends>:void=
        SignalRemoteBlue.PrimarySignalEvent.Subscribe(HandlePrimaryButton)

In DoFollowPlayer, before telling the prop where to move, you need to find the closest player and then move to that location. A simple way to do this is to loop though all players and find the distance between each player and the prop, storing the location of the player who had the shortest distance. Then you can call moveto on that shortest distance

I tried that but how do I Store the distance of a Player