miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
|
| 26 Jul 2011 12:05 PM |
while true do s = Instance.new("Sound") s.Name = "Sound" s.SoundId = ""--Don't have the name yet s.Looped = true s.archivable = true s.Volume = 1 s.Parent = Workspace wait(60) s:Play() wait(20) s:Remove() end
I don't know if that will work because when I say s:Remove() I think it might remove it forever so Thats why I'm asking you guys. |
|
|
| Report Abuse |
|
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
|
| 26 Jul 2011 12:18 PM |
| Anyone?Please?WOuld it work |
|
|
| Report Abuse |
|
|
|
| 26 Jul 2011 12:25 PM |
while true do s = Instance.new("Sound") s.Name = "Sound" s.SoundId = ""--Don't have the name yet s.Looped = true s.Parent = Workspace wait(60) s:Play() wait(20) s:Stop() end
I removed the volume/archivable because if it's being instanced in game it wouldn't need to be true. Volume is automaticly set to 1. |
|
|
| Report Abuse |
|
|
|
| 26 Jul 2011 12:27 PM |
Wait...
"I don't know if that will work because when I say s:Remove() I think it might remove it forever so Thats why I'm asking you guys."
If it's while true do it wouldn't matter. It will work a bit smoother like this.
local s = Instance.new("Sound") s.Name = "Sound" s.SoundId = ""--Don't have the name yet s.Looped = true s.Parent = Workspace while true do wait(60) s:Play() wait(20) s:Stop() end |
|
|
| Report Abuse |
|
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
|
| 26 Jul 2011 12:28 PM |
| Ok, so MY SCRIPT all I had to do is instead of saying s:Remove() I can just say s:Stop? |
|
|
| Report Abuse |
|
|
|
| 26 Jul 2011 12:31 PM |
local s = Instance.new("Sound", Workspace).SoundId = "" s.Looped = true while wait(60) do s:Play() wait(20) s:Stop() end
That's about as efficient as it gets. If it doesn't work, put the soundId part as it is shown in previous versions.
-My hand is a dolphin |
|
|
| Report Abuse |
|
|
| |
|
|
| 26 Jul 2011 12:32 PM |
| Mega, your version errors. Check it. NOW. |
|
|
| Report Abuse |
|
|
|
| 26 Jul 2011 12:32 PM |
Like I said...
-My hand is a dolphin |
|
|
| Report Abuse |
|
|
|
| 26 Jul 2011 12:33 PM |
| unexpected symbol near '=' |
|
|
| Report Abuse |
|
|
|
| 26 Jul 2011 12:33 PM |
Use this:
local s = Instance.new("Sound", Workspace) s.SoundId = "" s.Looped = true while wait(60) do s:Play() wait(20) s:Stop() end
-My hand is a dolphin |
|
|
| Report Abuse |
|
|