for randomise HUD message

I need help with my map: I have several HUD messages and I want only one to be displayed to a specific team when a trigger is activated, but I also want the displayed HUD message to be randomized every round.

Are you using FortniteCreative or UEFN? You can use a random number generator device along with a custom filter on the hud messages themselves that allow them to only be shown to one specific team

I have 40 HUD messages and I want only 1 to be displayed randomly, but when I activate the générateur de nombres aléatoires, it always shows the same message.

Are you in UEFN?

yeah im

Here’s a verse script it takes an array of hud message devices and a trigger device, when the trigger is triggered a random HudMessage Device from the list will play

using { /Fortnite.com/Devices }
using { /Verse.org/Simulation }
using { /Verse.org/Random }
pick_random_hud:=class(creative_device):
    @editable HudMessages : []hud_message_device = array{}
    @editable Trigger : trigger_device = trigger_device{}
    OnBegin<override>()<suspends>:void=
        Trigger.TriggeredEvent.Subscribe(OnTriggered)

    OnTriggered(Agent:?agent):void=
        if(Result:=HudMessages[GetRandomInt(0,HudMessages.Length-1)]):
            Result.Show()