Why does the touch function not work?
function onTouched()
--Code
end
script.Parent.Touched:connect(onTouch)
Why does the touch function not work?
function onTouched()
--Code
end
script.Parent.Touched:connect(onTouch)
The touch function does not work because on Line 5 you are suppose put in brackets "onTouched".
function onTouched()
--Code
end
script.Parent.Touched:connect(onTouched) -- Here
Try and see if it works.
Thank you
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
Line 5 should be onTouched not onTouch