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
 

Ambience problem

Previous Thread :: Next Thread 
TheN00bScripter is not online. TheN00bScripter
Joined: 04 Nov 2015
Total Posts: 89
05 Oct 2016 03:51 PM
Its not necessarily the code that's the problem. But its what is lacking. As soon as a player joins, an ambience should be playing for them. Although on servers, the server says that the sound audio is playing for the player, yet on the client of the player says the audio is not being played. Anyone know what is going on?


Report Abuse
TheN00bScripter is not online. TheN00bScripter
Joined: 04 Nov 2015
Total Posts: 89
05 Oct 2016 05:46 PM
Um... Does anyone at least know what I'm trying to say? I'll even post my code so you can see what I got..

(The sounds named amb and scare are in the playergui)
script.Parent.Touched:connect(function(h)
sound = game.Players[h.Parent.Name].PlayerGui.amb
print(h)
if sound.Playing == true then
wait()
return
end
h = h.Parent:FindFirstChild("Humanoid")
if h then
wait()
game.Players[h.Parent.Name].PlayerGui.scare:Stop()
game.Players[h.Parent.Name].PlayerGui.amb:Play()
game.Players[h.Parent.Name].PlayerGui.amb.Volume = 1
end
print(h)
end)


The players hear no sounds, help.


Report Abuse
modulum is not online. modulum
Joined: 11 Jul 2016
Total Posts: 242
05 Oct 2016 05:48 PM
- not a solution, just a question -

Is your game FE?


Report Abuse
TheN00bScripter is not online. TheN00bScripter
Joined: 04 Nov 2015
Total Posts: 89
05 Oct 2016 05:49 PM
@mod no, I don't use FE.


Report Abuse
modulum is not online. modulum
Joined: 11 Jul 2016
Total Posts: 242
05 Oct 2016 06:01 PM
Oh, okay. So basically you're trying to make a part that when touched plays music and a sound on the person's client?


Report Abuse
TheN00bScripter is not online. TheN00bScripter
Joined: 04 Nov 2015
Total Posts: 89
05 Oct 2016 06:11 PM
Yes, i want it to separately play it on the client. I've made a research facility kind of place. I want the players to hear different things when in different rooms, so like the main ambient is a calm soothing noise, but if you go in the dark storage you hear a dread like gloomy music. But you get the point, and i cant make the whole server hear it. It would be annoying to have random sounds play even though you havent moved from another room.


Report Abuse
Suedes is not online. Suedes
Joined: 09 Aug 2010
Total Posts: 1371
05 Oct 2016 06:13 PM
You'd be much better off using FilteringEnabled. For one, it would make something like this much easier to script, and if used properly, will significantly reduce the odds of your place being exploited.
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