My Procedure Is Freezing The Game But Not Me

Issue description

I have these 2 procedures that are supposed to switch back and forth a on or off receiver dependent if a transmitter is near, but when I place down the receiver the game freezes up. 

[Fixed]

Issue comments

I realized what I did wrong, I was creating a infinite loop every game tick it should be a round every tick! Thx