Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I print 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)

1 comment

0

You forgot the end for the function...

1 answer

✓ Accepted answer

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.