Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

My music im using for my game keeps repeating please help?

Alright so, I'm trying to make music for my loading screen, but the music keeps on repeating its previous sound. Also, when the loading screen is done, the music gets destroyed.

I've tried everything such as:

script.Parent.Parent.Parent["Star Wars - The Force Theme [ Remix ]"]:Destroy()

and...

script.Parent.Parent.Parent["Star Wars - The Force Theme [ Remix ]"]:Play()

but it won't work. Help!

4 comments

0

Is it looped?

0

And playing plays it again, you used :Stop()

0

Oh, I'll try it.

0

Wow thanks you fixed it!

1 answer

Sound instances have a looped property, set it to false like this

script.Parent.Parent.Parent["Star Wars - The Force Theme [ Remix ]"].Looped = false
script.Parent.Parent.Parent["Star Wars - The Force Theme [ Remix ]"]:Play()

1 comment

0

I figured out the problem. My script had a while wait do command on it, which repeats the music. I have fixed it now.

This discussion is preserved as it was. New answers, comments, and votes are closed.