I'm finding it hard to make a script, that allows each part named something, like for example grass, have a sound when you step on it. I made a script with a function, and well here it is: function touch(hit)
function touch(hit) if hit.Name == "Grass" then end end script.Parent.Touched:connect(touch) Workspace.sound.play() wait(1) Workspace.sound.play() wait(1) loop end
Please help me with this script, maybe find some errors, i don't want a link to a model, i need help. So am i doing anything wrong?

4 comments
Thank you so much!
Yup.
Estomac tell him what he did wrong don't just give him the answer
Hey there, stranger. I hope you do realize the '6 months ago' label on this post. It's really not your place to tell me how to go about answering his question. I'm sure he would have asked for clarification if he wished.