while true do wait(0) script.Parent.MallMusic.Playing = true wait(35) script.Parent.MallMusic.Playing = false wait(100000) end
The problem is that sometimes it glitches out and play at different timing than it should according to the script if a player lags.(A Small Delay)
Is this in a local script? If so, the timing of the audio depends on the client not the server.
The problem is either your internet is very slow or something else. I've made a few enhancments to your code for future use.
Dont use Playing = false or Playing = true, instead use :Stop() , :Resume() , or :Play()
spawn(function() while true do wait() script.Parent.MallMusic:Play() wait(35) script.Parent.MallMusic:Stop() wait(100000) end end)