Set Brush not working

If I do that in the TAB script, won’t it not have a reference made until the first time the player hits TAB? So if they never hit TAB and interact with something that is supposed to change the stars, nothing would happen no?