Are these 2 ways of using Touch, work the same way or which one is better?
function onTouch(hit) print"Hello!" end script.Parent.Touched:connect(onTouch)
script.Parent.Touched:connect(function (hit) print"Hello!" end)
I Prefer the bottom one it uses less lines of code.