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: Issue with sound

Previous Thread :: Next Thread 
TheBenSquare is not online. TheBenSquare
Joined: 13 Dec 2009
Total Posts: 13604
31 Oct 2015 10:37 AM
p.CharacterAdded:connect(function(c)
local s = Instance.new("Sound", p:WaitForChild("PlayerGui"))
s.SoundId = 'rbxassetid://161608112'
s.Volume = 0.5
s.Pitch = 1
s.Looped = true
s:Play()
end)

For some reason, it doesn't seem to work. The output gives no errors andd the 'p' variable is the player via a PlayerAdded event at the very top. This is also from a server-side script. Anyone know a solution?
Report Abuse
Scriptecx is not online. Scriptecx
Joined: 11 Aug 2014
Total Posts: 314
31 Oct 2015 10:57 AM
Try a preload: http://wiki.roblox.com/index.php?title=API:Class/ContentProvider/Preload
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