So i'm recently working on a jailbreak-like game and i want to make the bank. the problem is not that i dont know how to play a sound localy cuz i have the script:
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)
but...i cant make it stop! I've tried to lookup the script but i coundn't find it. Can you please give me the script for stopping the song please?
