In a tournament game I have, when a map loads a song will play. The song starts just fine when the map is cloned and put in the workspace, however when the round ends and the map is removed the song continues to play. How can I fix this? I'm still fairly new to Lua.
Here's the script inside the sound.
local song = script.Parent
local Model = script.Parent.Parent
if Model.Parent == game.Workspace then
song:Play()
else
song:Stop()
end |