There is some issue with events

in my older files I am using events to add viewmodel numbers and it is working fine

but when im creating new events and using the same set method to update viewmodel numbers it is not working at all. even if everything is same only new events are causing this issue. old events are working fine.


P.s. - I know events are deprecated and viewmodel triggers is the new way but i cannot control when i want to add viewmodel numbers using that. if there is a way let me know.

P.s. - i cannot use scripts because it is causing our app to crash in production.