DanGalaxy
|
  |
| Joined: 17 May 2016 |
| Total Posts: 169 |
|
|
| 03 Sep 2016 06:16 PM |
I'm working on this complex obby with the a storyline, but I'm trying to figure out how to play one song in only a certain area or radius. Does anyone know how to do that? If so, can you paste the command here and explain it through?
|
|
|
| Report Abuse |
|
|
DanGalaxy
|
  |
| Joined: 17 May 2016 |
| Total Posts: 169 |
|
| |
|
|
| 03 Sep 2016 06:23 PM |
Just put the sound in an invisible brick in the area turn the volume down so when you leave the room it fades out.
|
|
|
| Report Abuse |
|
|
|
| 03 Sep 2016 06:28 PM |
@squid
worst idea ever
just do
local sound = game.Workspace.Sound local sound1 = game.Workspace.Sound1
local part = game.Workspace.Part
part.TouchBegan:connect(function(player) sound:Play() end
part.TouchEnded:connect(function(player) sound1:Stop() end
|
|
|
| Report Abuse |
|
|
seliso
|
  |
| Joined: 30 Jan 2011 |
| Total Posts: 6443 |
|
|
| 03 Sep 2016 06:34 PM |
| you could use Region3 to see if a player is in an area or you could use magnitude. |
|
|
| Report Abuse |
|
|
seliso
|
  |
| Joined: 30 Jan 2011 |
| Total Posts: 6443 |
|
|
| 03 Sep 2016 06:35 PM |
http://wiki.roblox.com/index.php?title=API:Region3
http://wiki.roblox.com/index.php?title=Magnitude |
|
|
| Report Abuse |
|
|