Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Simple Script, why isn't it working?

Asked by 10 years ago

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

Log in to vote
0
Answered by
TofuBytes 500 Moderation Voter
10 years ago

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.
0
Still doesn't work. I don't understand why it isn't working. Grenaderade 525 — 10y
0
There it should work. :) TofuBytes 500 — 10y
0
If it work, make sure it's an accepted answer on the side. TofuBytes 500 — 10y
0
game.Players.PlayerAdded:connect(onEntered()). Does that change anything? GoldenPhysics 474 — 10y
Ad

Answer this question