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

How do you fix this sound script?

Asked by
Supint 60
10 years ago

I've done this:

local sound = game.Workspace.Ambient1
wait(27)
sound:play()
script.Parent.IntroClip.Frame.Play.MouseButton1Click:connect(function()
sound:stop()
for i=1,100 do
wait(0.02)
script.Parent.IntroClip.Frame.Transparency = script.Parent.IntroClip.Frame.Transparency - 0.01
end
end)

However the sounds played immediately after the game loaded, not waiting the appointed 27 seconds.

Answer this question