Music system not working for me

Hello, recently I followed this YouTube tutorial to help me create a music system for my game:

How to make a music system | Roblox 2020 - YouTube

The script seems to work fine, but since I made an obby, when the character dies, the music always restarts on a different song. I am only barely starting to learn how to script, but is there a way that I can prevent this?

Thanks.

Here is an example:
robloxapp-20220614-0902462.wmv (1.8 MB)

Try placing the script in ServerScriptService or the workspace. If the script is in a local setting, it most likely will get reset every time the character dies.

1 Like