Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Anyone know how to make a sound when you leave the game?

Asked by 3 years ago

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?

1 answer

Log in to vote
0
Answered by 3 years ago

game.Close:Connect(function() -- enter play sound function and sound ID end)

That might do the trick.

0
In theory, this would work, but ROBLOX closes before a sound is played, at least in my testing. JamesLWalker 297 — 3y
0
What about parenting it to the player removed function? thedubsgaming 22 — 3y
Ad

Answer this question