I can't figure out how to get this to work. Can someone help?
function onTouch() wait() print(hi) script.Parent.Touched:connect(onTouch)
Well, you're not printing a string!
function onTouch() wait() print("hi") end script.Parent.Touched:connect(onTouch)
And like M39aam3r said, you forgot the end.