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?
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?