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

How can i put these two scripts together?

Asked by 9 years ago

Is there a way i can combine these two scripts so the while true do script on the bottom will play after the sound:Play() on the main script on the top?

local sound = Instance.new("Sound")
sound.SoundId = "http://www.roblox.com/asset/?id=162555471"
sound.Parent = game.Workspace.Sound3
sound:Play()
wait(150)
sound:stop()

And

while true do
game.Lighting.Ambient = Color3.new(math.random(), math.random(), math.random())
wait(0.1)
end
0
Use coroutines. GoldenPhysics 474 — 9y
0
Didnt work :( QuantumScripter 48 — 9y
0
Do you know how to use coroutines? Redbullusa 1580 — 9y
0
Nope QuantumScripter 48 — 9y
View all comments (2 more)
0
I researched it and i don't get it QuantumScripter 48 — 9y
0
Never mind i figured it out QuantumScripter 48 — 9y

Answer this question