In get a snack at 4am if you leave the game it plays some ufo sound and I really thought that was cool so anyone got the script for it?
COMMUNITY QUESTION
Anyone know how to make a sound when you leave the game?
1 answer
game.Close:Connect(function()
-- enter play sound function and sound ID
end)
That might do the trick.
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
In theory, this would work, but ROBLOX closes before a sound is played, at least in my testing.
What about parenting it to the player removed function?