|
| 01 Oct 2014 01:50 AM |
So this is the script, there is an audio file there. To stop the music, should I say the command stop() or another command???
function onTouched(hit) script.Parent.Ghost:play() end script.Parent.Touched:connect(onTouched) |
|
|
| Report Abuse |
|
|
| |
|
|
| 01 Oct 2014 02:42 AM |
function onTouched(hit) script.Parent.Ghost:play() end script.Parent.Touched:connect(onTouched) local script.Parent.Ghost:remove() end
Try that.
R$103,948 ~#Durst~ P̕͝-̕R-̷̀͟Ǫ̷-̶͘X-҉̶Y ( ͡° ͜ʖ ͡°) |
|
|
| Report Abuse |
|
|
|
| 01 Oct 2014 03:28 AM |
I will go with destroy() Remove just keeps it in the game but isn't removed and can be recovered. |
|
|
| Report Abuse |
|
|
|
| 01 Oct 2014 12:08 PM |
That's the idea. If they reset, they'll hear it again..
R$108,713 ~#Durst~ P̕͝-̕R-̷̀͟Ǫ̷-̶͘X-҉̶Y ( ͡° ͜ʖ ͡°) |
|
|
| Report Abuse |
|
|
|
| 01 Oct 2014 12:08 PM |
Let me fix it completely.
R$108,713 ~#Durst~ P̕͝-̕R-̷̀͟Ǫ̷-̶͘X-҉̶Y ( ͡° ͜ʖ ͡°) |
|
|
| Report Abuse |
|
|
|
| 01 Oct 2014 12:09 PM |
function onTouched(hit) local script.Parent.Ghost:play() end script.Parent.Touched:connect(onTouched) local script.Parent.Ghost:remove() end
That way, whenever the user walks on it, it'll only play for them.
R$108,713 ~#Durst~ P̕͝-̕R-̷̀͟Ǫ̷-̶͘X-҉̶Y ( ͡° ͜ʖ ͡°) |
|
|
| Report Abuse |
|
|
qazqazq
|
  |
| Joined: 13 Aug 2009 |
| Total Posts: 973 |
|
|
| 01 Oct 2014 12:13 PM |
What durst said
~Rainbow Dash of atr~ |
|
|
| Report Abuse |
|
|
| |
|
|
| 01 Oct 2014 01:00 PM |
| I am making a new horror game (because the GCC I made really sucked) so it will be 1 player server. |
|
|
| Report Abuse |
|
|
|
| 01 Oct 2014 01:10 PM |
mk.
R$109,304 ~#Durst~ P̕͝-̕R-̷̀͟Ǫ̷-̶͘X-҉̶Y ( ͡° ͜ʖ ͡°) |
|
|
| Report Abuse |
|
|
|
| 01 Oct 2014 01:11 PM |
Keep local, so if you reset, it'll work again.
R$109,304 ~#Durst~ P̕͝-̕R-̷̀͟Ǫ̷-̶͘X-҉̶Y ( ͡° ͜ʖ ͡°) |
|
|
| Report Abuse |
|
|
Serkisx
|
  |
| Joined: 25 May 2014 |
| Total Posts: 4270 |
|
|
| 01 Oct 2014 01:11 PM |
2 Player Co-op PLS.
"He has planted his arbolito in another garden." - Gordonrox24 |
|
|
| Report Abuse |
|
|
|
| 01 Oct 2014 01:17 PM |
not wrong forum; there are scripters here too
- moistearlobe: a lazy man with ambitious goals. |
|
|
| Report Abuse |
|
|
|
| 01 Oct 2014 05:19 PM |
if you can't die on the place, then use destroy(), but remove() is good for like.. If you glitch, and you want to play through it all again after resetting..
R$113,163 ~#Durst~ P̕͝-̕R-̷̀͟Ǫ̷-̶͘X-҉̶Y ( ͡° ͜ʖ ͡°) |
|
|
| Report Abuse |
|
|