Krozome
|
  |
| Joined: 23 Nov 2012 |
| Total Posts: 2873 |
|
| |
|
Krozome
|
  |
| Joined: 23 Nov 2012 |
| Total Posts: 2873 |
|
|
| 11 Oct 2014 07:33 PM |
function onTouch() wait(4) Game.Workspace.Sound:Play()
end
ik its wrong :( undefined |
|
|
| Report Abuse |
|
|
|
| 11 Oct 2014 07:34 PM |
yourpart.Touched:connect(function() game.Workspace.yoursong:Play() end)
Make sure you song has loop set to true if you want it to loop |
|
|
| Report Abuse |
|
|
|
| 11 Oct 2014 07:35 PM |
function onTouched()
wait(4) workspace.Sound:Play() end
workspace.PartName.Touched:connect(onTouched) |
|
|
| Report Abuse |
|
|
Krozome
|
  |
| Joined: 23 Nov 2012 |
| Total Posts: 2873 |
|
|
| 11 Oct 2014 07:35 PM |
ok thanks ill try it
undefined |
|
|
| Report Abuse |
|
|
Haggie125
|
  |
| Joined: 02 Apr 2008 |
| Total Posts: 761 |
|
|
| 11 Oct 2014 07:36 PM |
Either that, or add this to the end
game.Workspace.Button.Touched:connect(onTouched) --Calls onTouched function |
|
|
| Report Abuse |
|
|
Krozome
|
  |
| Joined: 23 Nov 2012 |
| Total Posts: 2873 |
|
|
| 11 Oct 2014 07:37 PM |
@cool it worked thanks
undefined |
|
|
| Report Abuse |
|
|
Krozome
|
  |
| Joined: 23 Nov 2012 |
| Total Posts: 2873 |
|
|
| 11 Oct 2014 07:44 PM |
Ive added multiple parts. And I wanted the old sound to stop playing when the new sound is activated so I wrote this>
function onTouched()
wait(4) workspace.ROSS2:Stop()
workspace.ROSS3:Play() end
workspace.PART2.Touched:connect(onTouched)
|
|
|
| Report Abuse |
|
|