wille430
|
  |
| Joined: 24 Sep 2012 |
| Total Posts: 189 |
|
|
| 04 Aug 2015 08:17 AM |
@Subject
game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:connect(function(char) local head = char:WaitForChild("Head") local sounds = head:GetChildren() for i = 1, #sounds do if sounds[i].SoundId == "rbxasset://sounds/action_footsteps_plastic.mp3" then sounds[i].SoundId = "rbxassetid://198360408" end end end) end) |
|
|
| Report Abuse |
|
|
wille430
|
  |
| Joined: 24 Sep 2012 |
| Total Posts: 189 |
|
| |
|
|
| 04 Aug 2015 08:31 AM |
| What is it supposed to do, and how does it fail? |
|
|
| Report Abuse |
|
|
wille430
|
  |
| Joined: 24 Sep 2012 |
| Total Posts: 189 |
|
|
| 04 Aug 2015 08:35 AM |
| The output doesn't say anything... and it's supposed to make the characters step sound to another... |
|
|
| Report Abuse |
|
|
|
| 04 Aug 2015 08:36 AM |
| The code seems fine, it may be your setup. |
|
|
| Report Abuse |
|
|
wille430
|
  |
| Joined: 24 Sep 2012 |
| Total Posts: 189 |
|
| |
|
|
| 04 Aug 2015 08:37 AM |
| If it's supposed to :play() a sound, then why are you just changing the sounds content id? |
|
|
| Report Abuse |
|
|
|
| 04 Aug 2015 08:37 AM |
not all children inside the head are a sound, that could be the problem
ToxicDominator - 11,060 posts |
|
|
| Report Abuse |
|
|
wille430
|
  |
| Joined: 24 Sep 2012 |
| Total Posts: 189 |
|
|
| 04 Aug 2015 08:41 AM |
@Distal http://www.roblox.com/Forum/ShowPost.aspx?PostID=169905282 @air It is :P... |
|
|
| Report Abuse |
|
|
wille430
|
  |
| Joined: 24 Sep 2012 |
| Total Posts: 189 |
|
| |
|
|
| 04 Aug 2015 08:53 AM |
| If it's the other items that are in the Head then just perform a simple check if the Instance is of the Sound class. |
|
|
| Report Abuse |
|
|
wille430
|
  |
| Joined: 24 Sep 2012 |
| Total Posts: 189 |
|
| |
|
wille430
|
  |
| Joined: 24 Sep 2012 |
| Total Posts: 189 |
|
|
| 04 Aug 2015 08:58 AM |
| Hmm... doesn't work :/ I should use a normal script, right? |
|
|
| Report Abuse |
|
|
| |
|
wille430
|
  |
| Joined: 24 Sep 2012 |
| Total Posts: 189 |
|
|
| 04 Aug 2015 08:59 AM |
I'm maybe a little bit rusty?:
game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:connect(function(char) local head = char:WaitForChild("Head") local sounds = head:GetChildren() for i = 1, #sounds do if sounds[i].ClassName == "Sound" then if sounds[i].SoundId == "rbxasset://sounds/action_footsteps_plastic.mp3" then sounds[i].SoundId = "rbxassetid://198360408" end end end end) end) |
|
|
| Report Abuse |
|
|
| |
|
| |
|
wille430
|
  |
| Joined: 24 Sep 2012 |
| Total Posts: 189 |
|
| |
|
wille430
|
  |
| Joined: 24 Sep 2012 |
| Total Posts: 189 |
|
| |
|
wille430
|
  |
| Joined: 24 Sep 2012 |
| Total Posts: 189 |
|
|
| 04 Aug 2015 09:05 AM |
| I don't think this will make it easier for you but: http://prntscr.com/80qd20 |
|
|
| Report Abuse |
|
|
|
| 04 Aug 2015 09:07 AM |
| That's good, also take a screenshot of the soundId for some of the sounds. |
|
|
| Report Abuse |
|
|
wille430
|
  |
| Joined: 24 Sep 2012 |
| Total Posts: 189 |
|
|
| 04 Aug 2015 09:08 AM |
| lol, I want to know if you're still helping xD |
|
|
| Report Abuse |
|
|
wille430
|
  |
| Joined: 24 Sep 2012 |
| Total Posts: 189 |
|
| |
|
|
| 04 Aug 2015 09:09 AM |
| Stop questioning me and I will be. |
|
|
| Report Abuse |
|
|
wille430
|
  |
| Joined: 24 Sep 2012 |
| Total Posts: 189 |
|
|
| 04 Aug 2015 09:09 AM |
| Like this? http://prntscr.com/80qf32 |
|
|
| Report Abuse |
|
|