robox44
|
  |
| Joined: 16 Sep 2008 |
| Total Posts: 737 |
|
|
| 15 Aug 2011 11:42 PM |
I need help with 1 little thing and the guys on the scripting forum wont respond so i came here. Anyways, I'm making this medieval game and I have 1 song that plays on a loop while u play but U see, I wanna make it so when I get to like, a castle or something, it turns off that music and then puts on another Any1 know how to do this? I've asked alot of people and no one could help me. :S |
|
|
| Report Abuse |
|
|
|
| 15 Aug 2011 11:44 PM |
| Local script. Make a script that puts the sound inside the person, so only that person can hear it, and when they touch the castle door, it changes the sound id to the other sound |
|
|
| Report Abuse |
|
|
robox44
|
  |
| Joined: 16 Sep 2008 |
| Total Posts: 737 |
|
|
| 15 Aug 2011 11:47 PM |
The main sound is already local. So... I haven't scripted from scratch in a while (about 4 months) I should go like... ok im already confused I just know that i need to do something with local and (ontouch) and make the ID change can you just type out a little script for me to copy and paste? And the main music script is already a local one FYI |
|
|
| Report Abuse |
|
|
|
| 15 Aug 2011 11:49 PM |
s=Instance.new("Sound") s.Parent = game.Players.LocalPlayer s.SoundId = 1337 -- change s:Play() s.Looped = true |
|
|
| Report Abuse |
|
|
robox44
|
  |
| Joined: 16 Sep 2008 |
| Total Posts: 737 |
|
|
| 16 Aug 2011 12:02 AM |
K thanks Just copy and paste, correct? |
|
|
| Report Abuse |
|
|
robox44
|
  |
| Joined: 16 Sep 2008 |
| Total Posts: 737 |
|
|
| 16 Aug 2011 12:03 AM |
and do I put it into a big, cancollide=false, transparency=1 brick?
|
|
|
| Report Abuse |
|
|