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: What did I do wrong?

Previous Thread :: Next Thread 
ZeroHour66 is not online. ZeroHour66
Joined: 14 Sep 2013
Total Posts: 1511
07 Mar 2015 09:23 PM
w = Instance.new("Sound", game.Players.LocalPlayer.PlayerGui)
w.Soundid = "rbxassetid://224412723"
w:Play()
Report Abuse
tyler5819 is not online. tyler5819
Joined: 14 Feb 2010
Total Posts: 683
07 Mar 2015 09:28 PM
What's the error it's outputting?
Report Abuse
ZeroHour66 is not online. ZeroHour66
Joined: 14 Sep 2013
Total Posts: 1511
07 Mar 2015 09:31 PM
it is saying that Soundid is not a valid member of Sound
Report Abuse
ZeroHour66 is not online. ZeroHour66
Joined: 14 Sep 2013
Total Posts: 1511
07 Mar 2015 09:32 PM
Nvm. Just needed to capitalize the I
Report Abuse
helicopter35 is not online. helicopter35
Joined: 25 Oct 2010
Total Posts: 1225
07 Mar 2015 09:34 PM
local s = Instance.new("Sound", game.Workspace)


function RunSound()
s.SoundId = "rbxassetid://224412723"
wait()
s:Play()
print("Music is on!")

end

RunSound()
Report Abuse
helicopter35 is not online. helicopter35
Joined: 25 Oct 2010
Total Posts: 1225
07 Mar 2015 09:35 PM
Yup, that works. Tested it in studio just now. Hope that helps!

Tip: You have to put the sound in Workspace, PlayerGui is not a valid member of 'Sound'
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