PlayOnRemove (Property)
From Legacy Roblox Wiki
PlayonRemove
It is very simple to stop music you get from playing.
- Click tools
- click the "+" next to workspace
- scroll down
- Select the music or sound
- look at the properties
- fill in the check next to "Play on remove"
If you dont have workspace or properties
- Click tools
- Click the view button ontop
- look for properties and workspace
- Click them.
The script
local s = Instance.new("Sound") s.Name = "Sound" s.SoundId = "e51fef40bfd5bb1327e46dc65715aa6e" s.Volume = 1 s.Looped = true --See where it says looped? change true to false s.archivable = false s.Parent = game.Workspace wait(0) s:play()
Changing the script It says true after the "=" next to looped, change the word "true" to "false" for it to remove so it only plays once.