While Loop not working

I wanted the AI to be activated at a certain time ingame, that’s why the remote event exists
The loop code contains all the AI after.