So i am making a game that has a model touch a part, but it has a onTouch script inside that part and when the model hits it, nothing happens. I think this is because of the "(hit)" thing, but I am not completly sure.
function onTouched(hit)
script.Parent.Transparency = 1
script.Parent.Parent.Sound:Play()
end
(Sorry if my scripting isn't that long, also note I'm a beginner scripter so I don't know much yet.)

1 comment
Remember, function names DO NOT AFFECT the function. All that matters is that you spell it right in your script.