Add the nodes shown in the image below, Delete the old code that was connected to the beginplay event.

If you dont know how to create an event bind copy the video below

https://gyazo.com/b8ad65a2986cf811eaab12ed4672d6a7