I can't figure out how to get this to work. Can someone help?
function onTouch()
wait()
print(hi)
script.Parent.Touched:connect(onTouch)
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.
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
You forgot the end for the function...