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: Sound script isn't working?

Previous Thread :: Next Thread 
reddanger is not online. reddanger
Joined: 27 May 2009
Total Posts: 38075
28 Nov 2014 06:12 PM
function onTouched(part)
local h = part.Parent.findFirstChild("Humanoid")
if h then
script.Freezing:play()
end

This should be working as I read a Wiki and did everything it said but the sound isn't working at all, could someone help? Also, what would a script look like if I were to automatically insert sounds into a player and have them play once they touched a certain part?
Report Abuse
reddanger is not online. reddanger
Joined: 27 May 2009
Total Posts: 38075
28 Nov 2014 06:36 PM
Bump.
Report Abuse
reddanger is not online. reddanger
Joined: 27 May 2009
Total Posts: 38075
28 Nov 2014 07:17 PM
Meep.
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
28 Nov 2014 07:19 PM
Connect the function.

function Touched(Hit)
--Do stuff
end

Part.Touched:connect(Touched) --Make sure you change "Part" to wherever the part is.
Report Abuse
reddanger is not online. reddanger
Joined: 27 May 2009
Total Posts: 38075
28 Nov 2014 07:35 PM
Still not working.
Report Abuse
reddanger is not online. reddanger
Joined: 27 May 2009
Total Posts: 38075
28 Nov 2014 07:48 PM
Never mind, I found a music playing script and edited it a bit to work for mine.
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