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)
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.