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

can anyone fix this music script please?

function sound()
wait(20)
   script.MUSIC:Play(1)
Players.PlayerAdded:connect(sound)
end

its not working at all :(

4 answers

function sound()
wait(20)
   script.MUSIC:Play(1)
Players.PlayerAdded:connect(sound)
end

You have the PlayerAdded caller in a function. Try this..

function sound()
	wait(10)
	script.MUSIC:Play(1)
end
Players.PlayerAdded:connect(sound)

Also make sure that there is the MUSIC inside the script.

function sound()
    wait(5)
    script.MUSIC:Play(1)
end
Players.PlayerAdded:connect(sound)

You have to call the function when a player enters.

1 comment

0

hi its still not doing anything...

function sound()
    wait(5)
    script.MUSIC:Play(1)
end
Players.PlayerAdded:connect(sound)

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