# Get Agent and Truncate decimals

**URL:** <https://forums.unrealengine.com/t/get-agent-and-truncate-decimals/2116875>\
**Category:** Verse\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, question, fortnite\
**Created:** [November 11, 2024, 11:32pm UTC](https://forums.unrealengine.com/t/get-agent-and-truncate-decimals/2116875 "2024-11-11T23:32:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ptroka](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ptroka](https://forums.unrealengine.com/u/ptroka)\
**Post date:** [November 11, 2024, 11:32pm UTC](https://forums.unrealengine.com/t/get-agent-and-truncate-decimals/2116875/1 "2024-11-11T23:32:28Z")

</div>

Hey everyone! How are u doing? Hope fine! Im doing a fornite island and im struggling with 2 things.

I have a score manager to manage scoring system. Im pretty new w verse, and i cant get current score i cant get the agent ,its a one player game.

```
    Players := GetPlayspace().GetPlayers()
    

    CurrentScore = ScoreManager.GetCurrentScore(Player)

```

If im not wrong GetPlayers returns me an array of player so i need to take the first one and input into the getcurrentscore method but i cant.

Could u help me? 🙏🙏

On the other hand im needing to round a number with a lot of decimals any could helpme?  
Im using a timer and the GetActiveDuration method but it return me a number with a lot of decimals and i cant find the way to truncate it.  
I tried with the Floor and Round function but it give me error

```
        if (CurrentTime <= 60.00):
            set CurrentTime = Timer.GetActiveDuration()
            if(set ReformatedTime = Round[CurrentTime]){} 

```

But i have this error  
[{  
“resource”: “/E:/UEFN/UNFNProjects/MiamiChallenge/Plugins/MiamiChallenge/Content/scoreandtimetohud.verse”,  
“owner”: “_generated\_diagnostic\_collection\_name_#0”,  
“code”: “3502”,  
“severity”: 8,  
“message”: “Failure in the right operand of ‘set … = …’ is not yet implemented.”,  
“startLineNumber”: 30,  
“startColumn”: 46,  
“endLineNumber”: 30,  
“endColumn”: 59  
}]

Any help?? please
