On the surface this code looks like it should function. Can you provide any errors that are being thrown in the output window?
Also since it looks like your local script is inside of a UI element, are you making sure that the player is in the game and the UI has loaded before you are firing the event?