generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Script isn't working,

Previous Thread :: Next Thread 
calum is not online. 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
rangersmash is not online. rangersmash
Joined: 18 Nov 2009
Total Posts: 2891
16 Sep 2011 11:16 AM
[ Content Deleted ]
Report Abuse
calum is not online. 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 is not online. 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 is not online. su8
Joined: 06 Mar 2009
Total Posts: 6334
16 Sep 2011 11:41 AM
Isn't it .Archivable?
Report Abuse
calum is not online. 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 is not online. calum
Joined: 22 Sep 2007
Total Posts: 14471
16 Sep 2011 11:53 AM
bump D;
Report Abuse
Builder1010101 is not online. Builder1010101
Joined: 07 Mar 2009
Total Posts: 115
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 is not online. calum
Joined: 22 Sep 2007
Total Posts: 14471
16 Sep 2011 01:13 PM
It's still not working! D:
Report Abuse
digpoe is not online. 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 is not online. calum
Joined: 22 Sep 2007
Total Posts: 14471
17 Sep 2011 06:30 AM
guys still isn't working! D:
Report Abuse
builder12342 is not online. builder12342
Joined: 20 Feb 2010
Total Posts: 169
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
Cachinnation is not online. Cachinnation
Joined: 21 Aug 2011
Total Posts: 1797
17 Sep 2011 07:17 AM
I don't think sounds are supported anymore... D:
Report Abuse
Builder1010101 is not online. Builder1010101
Joined: 07 Mar 2009
Total Posts: 115
17 Sep 2011 07:29 AM
Yeah they are, I am using them in my place.
Report Abuse
Cachinnation is not online. Cachinnation
Joined: 21 Aug 2011
Total Posts: 1797
17 Sep 2011 07:29 AM
Did you make your own or did you free model?

Just askin'.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image