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

Making a sound muffled in an area?

Asked by 3 years ago

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

Log in to vote
0
Answered by
lamgogo 56
3 years ago
Edited 3 years ago

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?

0
I have music in workspace, I was going to put it in sound service but roblox cant access it Student20986 0 — 3y
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? Student20986 0 — 3y
0
Have you moved it to normal script yet? lamgogo 56 — 3y
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 Student20986 0 — 3y
View all comments (4 more)
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) lamgogo 56 — 3y
0
so I tested it and it effects everyone on the server. it muffles the audio for everyone... thanks for trying tho Student20986 0 — 3y
0
So you can use the remote event,it will not effect the whow sever lamgogo 56 — 3y
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) lamgogo 56 — 1y
Ad

Answer this question