Stupid Question

Yes… i am a big noob and i have a dynamic text named “total” and everytime it plays a certain frame i want it to add “+1” to “total” so if it were to go over the frame twice then “total” would be “2”

Anyone give me some code?