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

Simple music script not firing?

I'm making a start up menu for a game, it's supposed to play music when you see it. Except it won't play.

This is in a local script. This script is in StarterGUI

game.Players.PlayerAdded:connect(function()
	script.StartMusic:Play()
end)

One player game by the way.

Any ideas why it's not working?

1 comment

0

Uh, there a couple of reasons. Try placing the sound in workspace, and remove the first and 3 line. Place the script in the sound and see if that work.

1 answer

Using PlayerAdded in a Localscript will NOT work, PlayerAdded will only work in a Script.

script.StartMusic:Play()

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