calum
|
  |
| Joined: 22 Sep 2007 |
| Total Posts: 14471 |
|
|
| 16 Sep 2011 11:12 AM |
local s = Instance.new("Sound")
s.Name = "Scream" s.SoundId = "rbxasset://sounds/uuhhh.wav" s.Volume = 5 s.Looped = false s.archivable = false
s.Parent = game.Workspace
s:Play() wait(math.random(15,40)
What it is meant to do, is play the sound called "Scream" every 15-40 seconds. Any helpers willing to share their scripting knowledge? |
|
|
| Report Abuse |
|
|
| |
|
calum
|
  |
| Joined: 22 Sep 2007 |
| Total Posts: 14471 |
|
|
| 16 Sep 2011 11:18 AM |
| Thank you so much! I will give this a go and see if it works. |
|
|
| Report Abuse |
|
|
calum
|
  |
| Joined: 22 Sep 2007 |
| Total Posts: 14471 |
|
|
| 16 Sep 2011 11:40 AM |
It still isn't working.
The script is in a brick called "Music", also the scream sound is in the same block as the script. It is archivable and has a volume and pitch of 1. The block itself is in a model called "Sound". |
|
|
| Report Abuse |
|
|
su8
|
  |
| Joined: 06 Mar 2009 |
| Total Posts: 6334 |
|
| |
|
calum
|
  |
| Joined: 22 Sep 2007 |
| Total Posts: 14471 |
|
|
| 16 Sep 2011 11:42 AM |
| Well, in the "Properties" menu, it has "Archivable" ticked under "Behaviour". |
|
|
| Report Abuse |
|
|
calum
|
  |
| Joined: 22 Sep 2007 |
| Total Posts: 14471 |
|
| |
|
|
| 16 Sep 2011 12:06 PM |
Ok, here is my attempt:
local s = Instance.new("Sound",game.Workspace.Music) s.Name = "Scream" s.SoundId = "rbxasset://sounds/uuhhh.wav" s.Volume = 1 s.Looped = false s.archivable = false
function Sound() s:Play() end
while true do Sound() wait(math.random(15,40)) -- Close the bracets end |
|
|
| Report Abuse |
|
|
calum
|
  |
| Joined: 22 Sep 2007 |
| Total Posts: 14471 |
|
|
| 16 Sep 2011 01:13 PM |
| It's still not working! D: |
|
|
| Report Abuse |
|
|
digpoe
|
  |
| Joined: 02 Nov 2008 |
| Total Posts: 9092 |
|
|
| 16 Sep 2011 01:16 PM |
| try looking in your users Appdata in ROBLOX. |
|
|
| Report Abuse |
|
|
calum
|
  |
| Joined: 22 Sep 2007 |
| Total Posts: 14471 |
|
|
| 17 Sep 2011 06:30 AM |
| guys still isn't working! D: |
|
|
| Report Abuse |
|
|
|
| 17 Sep 2011 06:45 AM |
I havent been on in a while so im a little rusty but I used to be able to code anything let me give it a shot.
i = 1 local s = Instance.new("Sound")
s.Name = "Scream" s.SoundId = "rbxasset://sounds/uuhhh.wav" s.Volume = 5 s.Looped = false s.archivable = false
s.Parent = game.Workspace
s:Play() wait(math.random(15,40)
Now this was your script the only thing wrong was it plays the sound waits 15-40 seconds then whats it do well you wanted to play again but you never scripted it to.
local s = Instance.new("Sound")
s.Name = "Scream" s.SoundId = "rbxasset://sounds/uuhhh.wav" s.Volume = 5 s.Looped = false s.archivable = false
s.Parent = game.Workspace
for i = 1 do s.Play() wait(math.random(15,40) end
This is my idea just use the script to debug the code for any basic errors that I might have confused with another codeing language. It should work if not try replacing the period in s.Play() with a colen but only if this dosnt work. |
|
|
| Report Abuse |
|
|
|
| 17 Sep 2011 07:17 AM |
| I don't think sounds are supported anymore... D: |
|
|
| Report Abuse |
|
|
|
| 17 Sep 2011 07:29 AM |
| Yeah they are, I am using them in my place. |
|
|
| Report Abuse |
|
|
|
| 17 Sep 2011 07:29 AM |
Did you make your own or did you free model?
Just askin'. |
|
|
| Report Abuse |
|
|