Adaxius
|
  |
| Joined: 22 Nov 2014 |
| Total Posts: 180 |
|
|
| 20 Jan 2017 12:03 AM |
Hello,
Ive coded an audio to play in my game. The code works perfectly in studio, but unfortunately doesn't function in game.
I need help.
- Adaxius |
|
|
| Report Abuse |
|
|
| |
|
Adaxius
|
  |
| Joined: 22 Nov 2014 |
| Total Posts: 180 |
|
|
| 20 Jan 2017 12:06 AM |
| Debounce = false function Touch(hit) local Humanoid = ################################# ## ###### and Debounce == false then Debounce = true game.Lighting.SoundGroup.blah:Play() wait (34) game.Lighting.SoundGroup.blah:Stop() Debounce = false end end script.Parent.Touched:connect(Touch) |
|
|
| Report Abuse |
|
|
Adaxius
|
  |
| Joined: 22 Nov 2014 |
| Total Posts: 180 |
|
|
| 20 Jan 2017 12:07 AM |
basically the audio plays at a specific point in the game.
|
|
|
| Report Abuse |
|
|
|
| 20 Jan 2017 12:12 AM |
Sounds can't be heard in Lighting. Place it in Workspace. |
|
|
| Report Abuse |
|
|
Adaxius
|
  |
| Joined: 22 Nov 2014 |
| Total Posts: 180 |
|
|
| 20 Jan 2017 12:24 AM |
Thanks a lot, i have no idea why i didn't think of that.
your awesome. |
|
|
| Report Abuse |
|
|