I have it so when the player first starts the game they are given a soundtrack, but I'd like it that when they'd enter a certain area and touch an invisible block it would change the music. How would I go about this?
I'm assuming the sound is in their PlayerGui to make it so they can hear it only.
script.Parent.Touched:connect(function(hit) if hit.Parent and game.Players:GetPlayerFromCharacter(hit.Parent) then p = game.Players:GetPlayerFromCharacter(hit.Parent) game.Workspace.SoundYouWantToStop:Stop() game.Workspace.SoundYouWantToPlay:Play() end end)