#How do I make a script where audio files play every 1 minute?
24 messages · Page 1 of 1 (latest)
why random?
cool
thanks alot
yw im just bored
wait u want to play multiple sounds?
theres a file named
or a random sound from a selected folder filled with sounds?
''sound'' as background music
with the script game.Workspace.play:Sound()
local announcment = game.Workspace:FindFirstChild("play")
while wait(math.random(60,120)) do
announcment:Play()
end
does it work like this?
with 1 sound it does
local Sounds = game.Workspace:FindFirstChild("play"):GetChildren()
local selected = nil
while wait(math.random(60,120)) do
local SelectedSound = Sounds[math.random(1, #Sounds)]
while SelectedSound == selected do
local SelectedSound = Sounds[math.random(1, #Sounds)]
selected = SelectedSound
selected:Play()
end
try this, i added loops to make sure it isnt the same sound playing