I think it also creates the energy used to make you spark while the engine is running. You will need it repaired or replaced if it is not working. You may be able to use the scoot but your battery is providing the power to the bike and when it runs low, the scoot will not work at all.
Note: I am not an expert on these things, this is just my guessitimate based on my driving and riding experiences.