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

Simple Script, why isn't it working?

This is a REALLY simple script but it is not working, help?


msc = script.Parent.Music

function onEntered()
msc:Play()
msc.Volume = 0.1
wait(0.1)
msc.Volume = 0.2
wait(0.1)
msc.Volume = 0.3
wait(0.1)
msc.Volume = 0.4
wait(0.1)
msc.Volume = 0.5
wait(0.1)
msc.Volume = 0.6
wait(0.1)
msc.Volume = 0.7
wait(0.1)
msc.Volume = 0.8
wait(0.1)
msc.Volume = 0.9
wait(0.1)
msc.Volume = 1
end

game.Players.PlayerAdded:connect(onEntered)

1 answer

Make sure your sound isn't in the ServerScriptService

If you're trying to make it play on the entire server, I advise putting the sound in the Workspace.

msc = game.Workspace.Music

function onEntered()
wait()--This will wait for the sound.

4 comments

0

Still doesn't work. I don't understand why it isn't working.

0

There it should work. :)

0

If it work, make sure it's an accepted answer on the side.

0

game.Players.PlayerAdded:connect(onEntered()). Does that change anything?

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