|
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|