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 ==
*'''Author''' hihi


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. and this is all (hihi).
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.

  1. Click tools
  2. click the "+" next to workspace
  3. scroll down
  4. Select the music or sound
  5. look at the properties
  6. fill in the check next to "Play on remove"

If you dont have workspace or properties

  1. Click tools
  2. Click the view button ontop
  3. look for properties and workspace
  4. 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.