Timer when text is visible


#1

Hello,
I have look around online and found similar scripts but nothing that achieved what I’m looking for. I’m trying to get text to show a timer that starts when the text becomes visible. Currently I have text appearing when an object lands on a point. From there I want to have that text start a timer from 0s until the object leaves that point, then restarts the timer the next time the object falls on that point.

Currently for the object on point I just have:

if $ObjectMoving.pos as string == $Dummyblock.pos as string then
(
$TxtA.visibility = true
)

It isn’t complicated, I’m still learning a lot about maxscript. Thank you in advance for your time.