|
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 21 Jan 2017 05:08 PM |
| I'm not the best at scripting but how do I find the animate player script?? |
|
|
| Report Abuse |
|
|
|
| 21 Jan 2017 05:09 PM |
you shouldn't need 2 sounds lol
|
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 21 Jan 2017 05:10 PM |
| Well yes actually, I will be having wave sounds above, and muffled waves underwater like swimming |
|
|
| Report Abuse |
|
|
|
| 21 Jan 2017 05:11 PM |
you can just tweak the properties of the sound obj to make it sound muffled
|
|
|
| Report Abuse |
|
|
|
| 21 Jan 2017 05:12 PM |
| I did already I just want to know how to make the sounds change when swimming |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 21 Jan 2017 05:16 PM |
| Where should i paste that script tho, Idk anything abut scripting sorry :l |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|