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
11 years ago

I've done this:

01local sound = game.Workspace.Ambient1
02wait(27)
03sound:play()
04script.Parent.IntroClip.Frame.Play.MouseButton1Click:connect(function()
05sound:stop()
06for i=1,100 do
07wait(0.02)
08script.Parent.IntroClip.Frame.Transparency = script.Parent.IntroClip.Frame.Transparency - 0.01
09end
10end)

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

Answer this question