I'm not sure how to deal with the delay, I hope this works properly lol
I got the star and lights from another project but changed the code slightly. you can find the original sprites here: https://scratch.mit.edu/projects/1174792346