script*
You don't have a connection line.
Judging by the name of your function, you'd want to hook it to the Touched event.
PathToObject.Touched:connect(FUNCTIONNAME)
Or you can call the function manually
FUNCTIONNAME()
In your case,
If you want it to register when the scripts parent is touched:
script.Parent.Touched:connect(onTouched)
If you want it fire when it is touched:
script.Wall.Touched:connect(onTouched) |