Answered by
4 years ago Edited 4 years ago
You missed some line,here is the script i writed
1 | local Touched = script.Parent.Touched |
2 | Touched.Connect( function (hit) |
3 | if hit.Parent:FindFirstChild( "Humanoid" ) then |
4 | local Player = game.Players:GetPlayerFromCharacter(hit.Parent) |
5 | Workspace.music.EqualizerSoundEffect.Enabled = true |
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?