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: Help

Previous Thread :: Next Thread 
fireflame09225 is not online. fireflame09225
Joined: 04 Jan 2010
Total Posts: 1818
25 Mar 2012 06:18 AM
Alright, so here is the script:

function onTouch(hit)
hit.Parent

That is just a tid bit of it, but...the question is: How does ROBLOX know what hit is? We didn't define it. And I know you can use anything...but I mean...how does ROBLOX figure it out?

Thanks!
Report Abuse
Trioxide is not online. Trioxide
Joined: 29 Mar 2011
Total Posts: 32902
25 Mar 2012 06:19 AM
[ Content Deleted ]
Report Abuse
fireflame09225 is not online. fireflame09225
Joined: 04 Jan 2010
Total Posts: 1818
25 Mar 2012 06:25 AM
How? How does ROBLOX know WHERE to go for "hit.Parent" ??
Report Abuse
DavyJones118 is not online. DavyJones118
Joined: 07 Jun 2011
Total Posts: 370
25 Mar 2012 06:26 AM
The BRACKETS () is a PARENTHESIS, its EXTRA INFORMATION
Report Abuse
su8 is not online. su8
Joined: 06 Mar 2009
Total Posts: 6334
25 Mar 2012 06:35 AM
The function acts like the parameters aren't nil or missing when it's called.
You define it with arguments when you call it..
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