I don't know why you're editing a script that isn't STimeCycle.
It may or may not work. STimeCycle is the common file to edit because it's always running in the background and refreshes every now and then.
Your script doesn't work because the game checks if you're pressing the Melee button the moment it starts, just once.
You're supposed to have that check in a loop, so the game is constantly checking for you to press that button.