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: Script Audio help!

Previous Thread :: Next Thread 
FreeWifiAndInternet is not online. FreeWifiAndInternet
Joined: 08 Apr 2013
Total Posts: 1249
03 Aug 2017 10:58 PM
I know how to get the audio to work once a certain brick is touched. But how do I get it to stop when you're not touching the brick?
Report Abuse
Niveum is not online. Niveum
Joined: 15 Aug 2009
Total Posts: 3437
03 Aug 2017 11:00 PM
part.TouchEnded:connect(function()
audio:Stop()
end)

part is the variable for the part
audio is the variable for the sound object


~ S P I C Y ~
Report Abuse
FreeWifiAndInternet is not online. FreeWifiAndInternet
Joined: 08 Apr 2013
Total Posts: 1249
03 Aug 2017 11:08 PM
This is my current script: debounce = false script.Parent.Touched:connect(function(hit) if not debounce then debounce = true ################################################## local player = game.Players:GetPlayerFromCharacter(hit.Parent) local sound = script.Parent.Sound:Clone() sound.Parent = player.PlayerGui sound:Play() wait(30) How do I add your part to it?
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