# How to set textblock using verse?

**URL:** <https://forums.unrealengine.com/t/how-to-set-textblock-using-verse/2337673>\
**Category:** Verse\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, fortnite\
**Created:** [February 16, 2025, 10:47pm UTC](https://forums.unrealengine.com/t/how-to-set-textblock-using-verse/2337673 "2025-02-16T22:47:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![4venzor](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@4venzor](https://forums.unrealengine.com/u/4venzor)\
**Post date:** [February 16, 2025, 10:47pm UTC](https://forums.unrealengine.com/t/how-to-set-textblock-using-verse/2337673/1 "2025-02-16T22:47:45Z")

</div>

Hey, I have currently been stuck on this problem. I am trying to figure out how to set text block in verse. I have attached my code below, I am trying to make it set the RankTextBlock = RankText, after the Default value was set at start.

```auto
AddUi() : overlay =
        var RankTextBlock : text_block = text_block{DefaultText:= StringToMessage(RankText), DefaultTextColor := NamedColors.White}
        NewOverlay : overlay = overlay:
            Slots := array:
                overlay_slot:
                    HorizontalAlignment := horizontal_alignment.Left
                    VerticalAlignment := vertical_alignment.Bottom
                    Widget := RankTexure 
                    Padding := margin{Left := 70.0, Right := 0.0, Bottom := 160.0, Top := 0.0}
                overlay_slot:
                    HorizontalAlignment := horizontal_alignment.Left
                    VerticalAlignment := vertical_alignment.Bottom
                    Widget := RankTextBlock 
                    Padding := margin{Left := 250.0, Right := 0.0, Bottom := 180.0, Top := 0.0}

    UpdateStats (Player : player): void = 
        Print("Updating Stats for Ui!", ?Duration:=6.0)
        Playerstats := PersistenceManager.GetPlayerStats(Player)
        CurrentRankPoints := Playerstats.rankpoints
        RankName := Playerstats.RankName
        NeededPoints := Playerstats.PointsNeeded
        CurrentRankIndex := Playerstats.CurrentRankIndex

        set RankText = "{CurrentRankPoints}/{NeededPoints}"

        value := CurrentRankIndex
        if (Element := RankedImages[value]):
            set RankTexture = Element
            RankTexure.SetImage(RankTexture)
    

```
