Based on your above code, you need to make sure you are using the correct spellings of Properties, since Lua is Case Sensitive.
This being said, here are the revisions based on this (for a single sound)
while true do
workspace.WhistleUnion.Toot:Resume()
workspace.WhistleUnion.Toot.Looped = true
wait(5)
workspace.WhistleUnion.Toot:Pause()
workspace.WhistleUnion.Toot.Looped = false
wait(25)
end
Using Resume and Paused will make the sound stop when it last was then continue, or you can start from the beginning by doing
while true do
workspace.WhistleUnion.Toot:Play()
workspace.WhistleUnion.Toot.Looped = true
wait(5)
workspace.WhistleUnion.Toot:Stop()
workspace.WhistleUnion.Toot.Looped = false
wait(25)
end
Either way, the sound will play for 5 seconds, then stop and begin playing 25 seconds later
1 comment
Is there and "end" to this loop? Also format your code better please.