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 » Scripters
Home Search
 

Re: Problem with adding audio to my game

Previous Thread :: Next Thread 
golangoal is not online. golangoal
Joined: 26 Apr 2011
Total Posts: 185
18 Feb 2016 03:32 PM
I don't know why but I can't add audio and I'm 100% sure that I'm doing everything right, my sound works in youtube, my volume in roblox is at max, and nothing happens.
Report Abuse
Wolfman11127 is not online. Wolfman11127
Joined: 27 Jul 2012
Total Posts: 132
18 Feb 2016 03:33 PM
What is your script to play the music?
Report Abuse
golangoal is not online. golangoal
Joined: 26 Apr 2011
Total Posts: 185
18 Feb 2016 03:35 PM
sound = Instance.new("Sound", game.Workspace)
sound.SoundId = "blah blah blah"
sound.Volume = 1
sound.Play()
Report Abuse
golangoal is not online. golangoal
Joined: 26 Apr 2011
Total Posts: 185
18 Feb 2016 03:36 PM
sound:Play()*********
Report Abuse
spinywind is online. spinywind
Joined: 26 Jan 2012
Total Posts: 3580
18 Feb 2016 03:38 PM
Sound.SoundId = your id you forgot to add this


Report Abuse
ZappleOfficial is not online. ZappleOfficial
Joined: 18 Sep 2013
Total Posts: 1075
18 Feb 2016 03:38 PM
try doing sound.SoundId.Value = "blah"
Report Abuse
Wolfman11127 is not online. Wolfman11127
Joined: 27 Jul 2012
Total Posts: 132
18 Feb 2016 03:41 PM
yeah try that
Report Abuse
golangoal is not online. golangoal
Joined: 26 Apr 2011
Total Posts: 185
18 Feb 2016 03:44 PM
Doesn't work
Report Abuse
golangoal is not online. golangoal
Joined: 26 Apr 2011
Total Posts: 185
18 Feb 2016 03:45 PM
Can someone try himself a working audio script and give it to me? If it doesn't work for me then it's a very weird problem
Report Abuse
TrianguIation is not online. TrianguIation
Joined: 03 Feb 2013
Total Posts: 110
18 Feb 2016 03:46 PM
Make sure your SoundId starts with "rbxassetid://" or "http://roblox.com/asset/?id=".


Report Abuse
spinywind is online. spinywind
Joined: 26 Jan 2012
Total Posts: 3580
18 Feb 2016 03:47 PM
^^^


Report Abuse
golangoal is not online. golangoal
Joined: 26 Apr 2011
Total Posts: 185
18 Feb 2016 03:47 PM
It does
Report Abuse
golangoal is not online. golangoal
Joined: 26 Apr 2011
Total Posts: 185
18 Feb 2016 03:48 PM
http://www.roblox.com/asset/?id=Number
Report Abuse
TrianguIation is not online. TrianguIation
Joined: 03 Feb 2013
Total Posts: 110
18 Feb 2016 03:49 PM
Okay, here's a script for a sound. This is assuming you want everyone to be able to hear the sound.

local sound = Instance.new("Sound")
sound.SoundId = "rbxassetid://243372213" -- Stressed Out by TWP
sound.Looped = true
sound.Parent = workspace
sound:Play()


Report Abuse
golangoal is not online. golangoal
Joined: 26 Apr 2011
Total Posts: 185
18 Feb 2016 03:51 PM
No sound, I tried in a script and in a local script :/
Report Abuse
spinywind is online. spinywind
Joined: 26 Jan 2012
Total Posts: 3580
18 Feb 2016 03:52 PM
Fixed this works btw i tested


sound = Instance.new("Sound", game.Workspace)
sound.SoundId = "rbxassetid://YOURID"
sound.Volume = 1
sound.Pitch = 1
sound:Play()


Report Abuse
golangoal is not online. golangoal
Joined: 26 Apr 2011
Total Posts: 185
18 Feb 2016 03:55 PM
It doesn't work for me, what a strange problem
Report Abuse
uknowdudes is not online. uknowdudes
Joined: 10 Jan 2011
Total Posts: 993
18 Feb 2016 03:55 PM
use workspace instead, shorter and faster c;

Translate this: 01010101 01101011 01101110 01101111 01110111 01100100 01110101 01100100 01100101 01110011 00100000 01110100 01101000 01100101 00100000 01100010 01100101 01110011 01110100
Report Abuse
spinywind is online. spinywind
Joined: 26 Jan 2012
Total Posts: 3580
18 Feb 2016 03:56 PM
Is it in a server script in workspace?



Report Abuse
golangoal is not online. golangoal
Joined: 26 Apr 2011
Total Posts: 185
18 Feb 2016 03:58 PM
I tried both local script and server script, even though I'm pretty sure it works only in a local script right?
Report Abuse
spinywind is online. spinywind
Joined: 26 Jan 2012
Total Posts: 3580
18 Feb 2016 03:58 PM
Put that code i gave you in workspace in a server script.


Report Abuse
golangoal is not online. golangoal
Joined: 26 Apr 2011
Total Posts: 185
18 Feb 2016 04:00 PM
Yea I tried that it doesn't work, is it a problem with my computer?
Report Abuse
spinywind is online. spinywind
Joined: 26 Jan 2012
Total Posts: 3580
18 Feb 2016 04:01 PM
It worked for me. Are you doing it exactly like i said. Because if you dont its not going to work unless its called by a function.


Report Abuse
golangoal is not online. golangoal
Joined: 26 Apr 2011
Total Posts: 185
18 Feb 2016 04:04 PM
I tried everything, I copied it exactly like you and no sound
Report Abuse
spinywind is online. spinywind
Joined: 26 Jan 2012
Total Posts: 3580
18 Feb 2016 05:02 PM
Make a fresh game an try that script. If it works in a fresh game but not in yours, that means you probably inserter a free model with a virus or you did something to mess it up.


Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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