So I am learning the basics of scripting and I understand almost all the basics so I decided to make it where it says print "I have been Touched" with a script that works that i made along time ago. So I need help printng"I was touched!" Thanks in advance:)
d = script.Parent function onTouch(part) d.Transparency = 1 wait(5) d.Transparency = 0 print "I was Touched!!" end d.Touched:connect(onTouch)
You used the print function incorrectly.
d = script.Parent function onTouch(part) d.Transparency = 1 wait(5) d.Transparency = 0 print "I was Touched!!" end d.Touched:connect(onTouch)
Add parentheses and it should work.