generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: i need some function help.

Previous Thread :: Next Thread 
thembunnies is not online. thembunnies
Joined: 03 Jun 2009
Total Posts: 1097
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 is not online. 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
thembunnies is not online. thembunnies
Joined: 03 Jun 2009
Total Posts: 1097
30 Mar 2012 04:37 PM
then why do i need to use both?


~Look its Thembunnies! Nope, its just Chuck Testa~
Report Abuse
Woodstauk4 is not online. Woodstauk4
Joined: 27 Dec 2010
Total Posts: 3061
30 Mar 2012 04:38 PM
[ Content Deleted ]
Report Abuse
thembunnies is not online. thembunnies
Joined: 03 Jun 2009
Total Posts: 1097
30 Mar 2012 04:44 PM
Thanks you helped me a lot.


~Look its Thembunnies! Nope, its just Chuck Testa~
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image