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

Making a sound muffled in an area?

I am making a local script so that when you touch the parent of the script it will apply an effect to the music, making it muffled.

local Touched = script.Parent.Touched
	workspace.music.EqualizerSoundEffect.Enabled (true)
Touched:Connect(function(hit)

end)

But it doesn't seem to work. Does anyone know my issue?

1 answer

You missed some line,here is the script i writed

 local Touched = script.Parent.Touched
 Touched.Connect(function(hit)
  if hit.Parent:FindFirstChild("Humanoid") then
         local Player = game.Players:GetPlayerFromCharacter(hit.Parent)
     Workspace.music.EqualizerSoundEffect.Enabled = true
      end
 end)

I have a question:In the first line,what is Touched,it is the part's name? If not,you should remove it so the script can work. Hope this helped you.

Edit:in the line 5 do you have a music in the workspace?

8 comments

0

I have music in workspace, I was going to put it in sound service but roblox cant access it

0

Hmm, so I am using a local script so it doesnt effect the whole server, but its not doing anything. I opened the explorer and check if the eq was enabled and it wasnt. Do you know what happened?

0

Have you moved it to normal script yet?

0

Well, I dont want it to effect the whole server, or else everyone will have to hear it muffled when ever someone is in an area

0

just move it to a normal script,when you touch the part you want to make sound maybe the script will work(the part will be that area you want a muffled sound)

0

so I tested it and it effects everyone on the server. it muffles the audio for everyone... thanks for trying tho

0

So you can use the remote event,it will not effect the whow sever

0

err sorry for very late reply,my gmail account got hacked so i cannot get my password again in this site until now,if u still need help u can tell me srr(frick my friend who hack it)

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