Hi,
The code you’ve pasted is in Begin Routine, but it doesn’t look like it belongs there.
On the other hand, time.sleep isn’t idea in an Each Frame tab.