tekkr
|
  |
| Joined: 30 Dec 2013 |
| Total Posts: 3570 |
|
| |
|
tekkr
|
  |
| Joined: 30 Dec 2013 |
| Total Posts: 3570 |
|
| |
|
| |
|
tekkr
|
  |
| Joined: 30 Dec 2013 |
| Total Posts: 3570 |
|
|
| 03 Feb 2014 05:05 PM |
| so i have this script and theres a sound in it and i want the sound to play by using the script (parent) |
|
|
| Report Abuse |
|
|
|
| 03 Feb 2014 05:06 PM |
sound = game.Workspace.Script.(whatever)
Then play the sound.. |
|
|
| Report Abuse |
|
|
tekkr
|
  |
| Joined: 30 Dec 2013 |
| Total Posts: 3570 |
|
| |
|
| |
|
|
| 03 Feb 2014 05:58 PM |
local times = {112, 109} -- There are currently 2 sounds, and those are their length. Put the sounds inside the script for i, t in ipairs(times) do local sound = script["Sound_" .. i] sound:Play() end wait(10) while true do -- loop for i, t in ipairs(times) do local sound = script["Sound_" .. i] sound:Play() wait(t) end end |
|
|
| Report Abuse |
|
|
|
| 04 Feb 2014 06:39 AM |
@chosendumber
Stop it, stupid.
Actually try to make it simple.
game.Workspace.Sound:Play() is all you need, not that garbage. |
|
|
| Report Abuse |
|
|