Ok so this is the script i actually got. Let's say theres Part1 Block when you want to pass and after Part2 block you want to pass them both. So when u pass the Part1 block the script below makes music play, however when u pass part2 block this is the same script below but plays different music and also stops the old one so u don't hear 2 musics at the same time can u guys help me do it ? Please i want answers dont ignore :/
local brick = script.Parent local sound = script.Parent.Sound debounce = false brick.Touched:connect(function(hit) player = game.Players:GetPlayerFromCharacter(hit.Parent) if player and not debounce then debounce = true play = sound:Clone() play.Parent = player.PlayerGui play:Play() wait(5) debounce = false end end)
In this case, where the debounce seems to not be working, you should make the script check if the sound has already been cloned to the PlayerGui.