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: Audio above and underwater

Previous Thread :: Next Thread 
WolframModel is not online. WolframModel
Joined: 16 Jul 2012
Total Posts: 100
21 Jan 2017 05:02 PM
SO.... I'm currently making a very nice scuba diving game, I'm just wondering how do I change audio when a player goes underwater. Can anyone help me please? Thanks.
Report Abuse
TextSoaked is not online. TextSoaked
Joined: 04 Sep 2015
Total Posts: 1040
21 Jan 2017 05:03 PM
local sound objs for audios first off all
if player is in the water, distort the audio by tweaking the sound properties


Report Abuse
EXYZED is not online. EXYZED
Joined: 09 Nov 2013
Total Posts: 533
21 Jan 2017 05:05 PM
Found this inside the animate script of a Player (@ last line)


I guess you can utilise this.
Humanoid.Swimming:connect(onSwimming)
Report Abuse
TextSoaked is not online. TextSoaked
Joined: 04 Sep 2015
Total Posts: 1040
21 Jan 2017 05:06 PM
^ yep there's specific enums for the humanoid state
http://wiki.roblox.com/index.php?title=API:Enum/HumanoidStateType


Report Abuse
WolframModel is not online. WolframModel
Joined: 16 Jul 2012
Total Posts: 100
21 Jan 2017 05:06 PM
I did, i have an underwater sound and an above water sound, I'm just wondering how to make the sounds change underwater
Report Abuse
WolframModel is not online. WolframModel
Joined: 16 Jul 2012
Total Posts: 100
21 Jan 2017 05:08 PM
I'm not the best at scripting but how do I find the animate player script??
Report Abuse
TextSoaked is not online. TextSoaked
Joined: 04 Sep 2015
Total Posts: 1040
21 Jan 2017 05:09 PM
you shouldn't need 2 sounds lol


Report Abuse
EXYZED is not online. EXYZED
Joined: 09 Nov 2013
Total Posts: 533
21 Jan 2017 05:09 PM
One way to observe the presence is to TEST in studio. game.Workspace. Assuming it's Player1 .Animate
Report Abuse
WolframModel is not online. WolframModel
Joined: 16 Jul 2012
Total Posts: 100
21 Jan 2017 05:10 PM
Well yes actually, I will be having wave sounds above, and muffled waves underwater like swimming
Report Abuse
TextSoaked is not online. TextSoaked
Joined: 04 Sep 2015
Total Posts: 1040
21 Jan 2017 05:11 PM
you can just tweak the properties of the sound obj to make it sound muffled


Report Abuse
WolframModel is not online. WolframModel
Joined: 16 Jul 2012
Total Posts: 100
21 Jan 2017 05:12 PM
I did already I just want to know how to make the sounds change when swimming
Report Abuse
TextSoaked is not online. TextSoaked
Joined: 04 Sep 2015
Total Posts: 1040
21 Jan 2017 05:13 PM
http://wiki.roblox.com/index.php?title=API:Enum/HumanoidStateType
http://wiki.roblox.com/index.php?title=API:Enum/HumanoidStateType
http://wiki.roblox.com/index.php?title=API:Enum/HumanoidStateType
http://wiki.roblox.com/index.php?title=API:Enum/HumanoidStateType

if HumanoidStateType = Enum.Swimming then
--todo
else
-todo
end


Report Abuse
WolframModel is not online. WolframModel
Joined: 16 Jul 2012
Total Posts: 100
21 Jan 2017 05:16 PM
Where should i paste that script tho, Idk anything abut scripting sorry :l
Report Abuse
EXYZED is not online. EXYZED
Joined: 09 Nov 2013
Total Posts: 533
21 Jan 2017 05:17 PM
Then refer to the God... Almighty.....














cookbook.

http://wiki.roblox.com/index.php?title=Cookbook
Report Abuse
WolframModel is not online. WolframModel
Joined: 16 Jul 2012
Total Posts: 100
21 Jan 2017 05:19 PM
Do you guys have Skype, ill add you to the team create and you guys could probably help me out?
Report Abuse
WolframModel is not online. WolframModel
Joined: 16 Jul 2012
Total Posts: 100
21 Jan 2017 05:21 PM
@textsoaked

so you gave me this:

if HumanoidStateType = Enum.Swimming then
--todo
else
-todo
end


Do I create a new script and put it in workspace or something? After how do i add like the sound ID in and stuff and do I change Enum to 4 because 4 is swimming?
Report Abuse
TextSoaked is not online. TextSoaked
Joined: 04 Sep 2015
Total Posts: 1040
22 Jan 2017 12:23 PM
I can't help you if you know absolutely nothing about scripting; I suggest you look up some youtube tutorials


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