Variable meter issue

Assuming your indentation looks like this the function will call itself forever if anything is pressed. Keep in mind scripts/functions run in their entirety and do not wait for events to happen, this will check if anything is pressed and restart the function, since no time has passed something is still pressed, so it restarts the function again and again until your stack overflows.


Make sure to format your pastes