I'm trying to make a game, and I want to turn off the music when you hit a brick. Can any of you answer this?
Hello, TheEliteYoutuber0241!
To detect if something hits a object you use .Touched
Example:
-- Object that will detect will be script's parent -- script.Parent.Touched:Connect(function(hit) -- The hit will give the part that collided name -- Do things here -- end)
To stop a music, you can use :Stop()
Example:
-- The music part(what emits the music) is script's parent -- script.Parent:Stop()
This isn't a request website, so I can't give you the full script, but this may help you lots =D
Good Luck with your games!