Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Call a function when a player enters a specific part of the map?

How would I do this?

When a player enters a specific part of the map, an audio plays. Right when they leave that area, the audio stops.

1 comment

1

Track the position of the user, use some math to figure out if a region's X, Y, and Z-axises is greater than or less than the user's position.

2 answers

Place a invisible part all over the area you want and then make a script like when he touch this part then the music plays :)

3 comments

0

And a function when the player leaves the part - TouchEnded

0

To stop the music

0

It's so much better to use m39a9am3R's idea. But obviously a better explanation would be needed.

This discussion is preserved as it was. New answers, comments, and votes are closed.