Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do you play music in certain areas? [closed]

Asked by 5 years ago
Edited 5 years ago

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....

0
Use region3 User#22788 5 — 5y
0
??? OH GOD NO NOT THAT PAINFUL WAY OF THAT AGAIN! Pokemonironred -67 — 5y

Closed as Not Constructive by SerpentineKing and DeceptiveCaster

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
0
Answered by 5 years ago

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!

0
K gonna try Pokemonironred -67 — 5y
Ad