I am developing a town model for my new game and i need music in each town/city/route but their is a big problem. I keep scripting in a brick that plays music but each time it repeats the music whenever i play. I tried cindering's model (Did not work). So. I have found out about that you can play music in certain areas. I do not know how to script it (Because i cannot use YouTube right now). If you guys know what script it is please tell me! Thanks Please help too! (PS u like the t shirt i just made :D) Also i need the brick to be...... cannot collide.. ya....
COMMUNITY QUESTION
How do you play music in certain areas?
1 answer
Use Region 3
or you can do it the ez way.
Something that would look like this...
local e = workspace.Song2
local f = workspace.Song1
script.Parent.touched:Connect(function()
f:Play()
e:Stop()
end)
And then for the 2nd part
local f = workspace.Song1
local e = workspace.Song2
script.Parent.touched:Connect(function()
e:Play()
f:Stop()
end)
I MIGHT BE INCORRECT. Because I'm too lazy to try it. But to me it seems correct. OH also 1 more thing. This only works for the whole server. It doesn't work for you locally. Otherwise might as well resort to the best option which is REGION3 WOOO!
1 comment
0
K gonna try
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
Use region3
??? OH GOD NO NOT THAT PAINFUL WAY OF THAT AGAIN!