So I just started learning how to script and I am confused because I though that when I put
function onTouched()
m = Instance.new("Message", game.Workspace)
m.Text = "Ouch! That hurts!"
wait(5)
m:Remove()
end
on a part and walked on it, then a message will appear. I made this script and put it in a Wedge part and when I walk on it, nothing happens. Help? Am I doing the wrong thing? Is there something I'm missing? Thanks.

1 comment
You did not add the Connection line.