|
| 30 Mar 2012 04:33 PM |
local brick = Workspace.Brick -- Store a reference to the brick. function onTouch(part) -- The function that runs when the part is touched. brick.Transparency = 1 wait(1) brick.Transparency = 0 end brick.Touched:connect(onTouch) -- The line that connects the function to the event.
i need some help. whats the difference between ontouch and Touched. and can you explain connect too.
~Look its Thembunnies! Nope, its just Chuck Testa~ |
|
|
| Report Abuse |
|
|
TINISH0TZ
|
  |
| Joined: 20 Nov 2009 |
| Total Posts: 2549 |
|
|
| 30 Mar 2012 04:36 PM |
| They are both similar, in other words they are both the same. |
|
|
| Report Abuse |
|
|
|
| 30 Mar 2012 04:37 PM |
then why do i need to use both?
~Look its Thembunnies! Nope, its just Chuck Testa~ |
|
|
| Report Abuse |
|
|
| |
|
|
| 30 Mar 2012 04:44 PM |
Thanks you helped me a lot.
~Look its Thembunnies! Nope, its just Chuck Testa~ |
|
|
| Report Abuse |
|
|