PlayOnRemove (Property): Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>Hihi No edit summary |
>Mindraker |
||
Line 1: | Line 1: | ||
== PlayonRemove == | == PlayonRemove == | ||
It is very simple to stop music you get from playing | It is very simple to stop music you get from playing. | ||
#Click tools | #Click tools | ||
Line 39: | Line 38: | ||
'''Changing the script''' | '''Changing the script''' | ||
It says true after the "=" next to looped, change the word "true" to "false" | It says true after the "=" next to looped, change the word "true" to "false" | ||
for it to remove so it only plays once. | for it to remove so it only plays once. | ||
[[Category:Scripting Tutorials]] |
Revision as of 12:58, 3 July 2008
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.