|
| 04 Jun 2014 04:04 AM |
A lot of people need help with sound at this hour, eh? The script works perfectly, except that when I try to duplicate the code and do it with another SoundId in the same script it completely ignores the joj and fanksgiving function and goes straight to trying to remove the non-existing sound.
local joj = Instance.new("Sound", game.Workspace) local fanksgiving = game.Workspace.Sound joj = true fanksgiving.SoundId = "http://www.roblox.com/asset/?id=142423769" fanksgiving.Pitch = 1 fanksgiving.Looped = false fanksgiving.Volume = 1 fanksgiving.PlayOnRemove = true game.Workspace.Sound:Remove() print('you want the joj done right') --game.Workspace.Players.Remove() |
|
|
| Report Abuse |
|
|
vlekje513
|
  |
| Joined: 28 Dec 2010 |
| Total Posts: 9057 |
|
|
| 04 Jun 2014 04:23 AM |
make new variable, AAAAND MOST IMPORTANT, AND IM TOO LAZY TO TURN OFF MY CAPS, PRELOAD THE ASSET |
|
|
| Report Abuse |
|
|
|
| 04 Jun 2014 04:24 AM |
| I have tried changing the variable but it skips it. Why preload it? |
|
|
| Report Abuse |
|
|
vlekje513
|
  |
| Joined: 28 Dec 2010 |
| Total Posts: 9057 |
|
|
| 04 Jun 2014 04:25 AM |
I think it removes bcuz it didnt preload, Yaknow, when kohl for ex it goes twice.
If it stops, it might dpget removed before loaded.
|
|
|
| Report Abuse |
|
|
|
| 04 Jun 2014 04:28 AM |
| Would wait and then remove work? |
|
|
| Report Abuse |
|
|
vlekje513
|
  |
| Joined: 28 Dec 2010 |
| Total Posts: 9057 |
|
| |
|