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: Why doesn't this work?

Previous Thread :: Next Thread 
wille430 is not online. 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 is not online. wille430
Joined: 24 Sep 2012
Total Posts: 189
04 Aug 2015 08:28 AM
:~)
Report Abuse
distalDigitPhalanx is not online. distalDigitPhalanx
Joined: 25 Jan 2015
Total Posts: 1509
04 Aug 2015 08:31 AM
What is it supposed to do, and how does it fail?
Report Abuse
wille430 is not online. 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
CeaselessSoul is not online. CeaselessSoul
Joined: 03 Jul 2012
Total Posts: 7506
04 Aug 2015 08:36 AM
The code seems fine, it may be your setup.
Report Abuse
wille430 is not online. wille430
Joined: 24 Sep 2012
Total Posts: 189
04 Aug 2015 08:36 AM
Setup?
Report Abuse
distalDigitPhalanx is not online. distalDigitPhalanx
Joined: 25 Jan 2015
Total Posts: 1509
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
airstriker4 is not online. airstriker4
Joined: 27 Jul 2012
Total Posts: 5831
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 is not online. 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 is not online. wille430
Joined: 24 Sep 2012
Total Posts: 189
04 Aug 2015 08:51 AM
I need still help...
Report Abuse
CeaselessSoul is not online. CeaselessSoul
Joined: 03 Jul 2012
Total Posts: 7506
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 is not online. wille430
Joined: 24 Sep 2012
Total Posts: 189
04 Aug 2015 08:54 AM
lol, I forgott that xD
Report Abuse
wille430 is not online. 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
CeaselessSoul is not online. CeaselessSoul
Joined: 03 Jul 2012
Total Posts: 7506
04 Aug 2015 08:58 AM
Depends.
Report Abuse
wille430 is not online. 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
CeaselessSoul is not online. CeaselessSoul
Joined: 03 Jul 2012
Total Posts: 7506
04 Aug 2015 08:59 AM
In this case, yes.
Report Abuse
CeaselessSoul is not online. CeaselessSoul
Joined: 03 Jul 2012
Total Posts: 7506
04 Aug 2015 08:59 AM
That's fine.
Report Abuse
wille430 is not online. wille430
Joined: 24 Sep 2012
Total Posts: 189
04 Aug 2015 09:00 AM
No solutions?
Report Abuse
wille430 is not online. wille430
Joined: 24 Sep 2012
Total Posts: 189
04 Aug 2015 09:01 AM
Wait what?
Report Abuse
wille430 is not online. 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
CeaselessSoul is not online. CeaselessSoul
Joined: 03 Jul 2012
Total Posts: 7506
04 Aug 2015 09:07 AM
That's good, also take a screenshot of the soundId for some of the sounds.
Report Abuse
wille430 is not online. 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 is not online. wille430
Joined: 24 Sep 2012
Total Posts: 189
04 Aug 2015 09:08 AM
Sorry...
Report Abuse
CeaselessSoul is not online. CeaselessSoul
Joined: 03 Jul 2012
Total Posts: 7506
04 Aug 2015 09:09 AM
Stop questioning me and I will be.
Report Abuse
wille430 is not online. wille430
Joined: 24 Sep 2012
Total Posts: 189
04 Aug 2015 09:09 AM
Like this? http://prntscr.com/80qf32
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