generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: How to make a Sound Play in certain areas?

Previous Thread :: Next Thread 
Xonious is not online. Xonious
Joined: 01 Jan 2009
Total Posts: 1820
14 Jul 2015 01:37 PM
Like when you walk into some Castle place, a different sound starts and the old one is gone.

And when you go back, vice versa.

Report Abuse
Xonious is not online. Xonious
Joined: 01 Jan 2009
Total Posts: 1820
14 Jul 2015 01:41 PM
bump
Report Abuse
MisBloxy is not online. MisBloxy
Joined: 13 Sep 2008
Total Posts: 164
14 Jul 2015 01:42 PM
Just put a sound in a brick.


Yay I did it :D
Report Abuse
Xonious is not online. Xonious
Joined: 01 Jan 2009
Total Posts: 1820
14 Jul 2015 01:46 PM
No.
Report Abuse
MisBloxy is not online. MisBloxy
Joined: 13 Sep 2008
Total Posts: 164
14 Jul 2015 01:50 PM
oh, i just read ur post. haha stupid me. i think u should put a brick at the entrance and have a status value change according to what song u want to play.


Yay I did it :D
Report Abuse
BobserLuck is not online. BobserLuck
Joined: 09 Mar 2012
Total Posts: 653
14 Jul 2015 02:00 PM
Well, have a list of sounds in a player and have it so if the player touches a brick such as a different floor or door, it will turn all other sounds off and play the one you want. Like (LocalScript):

person=game.Players.LocalPlayer:WaitForChild("Character")
feet=person:WaitForChild("Left Leg")

function song(brick)
if brick.Name=="Hall Way Floor" --Or whatever
for i,v in pairs (game.Players.LocalPlayer.songs:GetChildren()) do
--assuming the songs are in a folder called "Songs"
v.Stop()
end

game.Players.LocalPlayer.songs.___.Play() --Song you want to play
end
end

feet.Touched:connect(song)
Report Abuse
BobserLuck is not online. BobserLuck
Joined: 09 Mar 2012
Total Posts: 653
14 Jul 2015 02:01 PM
Mite be a few bugs in my code but you get the picture.
Report Abuse
myactivetestplace is not online. myactivetestplace
Joined: 11 Jul 2015
Total Posts: 3733
14 Jul 2015 02:03 PM
i think you would just clone it into the player when they are at that position
Report Abuse
BobserLuck is not online. BobserLuck
Joined: 09 Mar 2012
Total Posts: 653
14 Jul 2015 02:05 PM
^ That would work too and would be a heck of a lot easier XD
Report Abuse
MisBloxy is not online. MisBloxy
Joined: 13 Sep 2008
Total Posts: 164
14 Jul 2015 02:15 PM
yay my idea worked for u! im so happy. btw, i learned scripting to help ppl, not make games.


Yay I did it :D
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image