|
| 26 Dec 2012 11:23 AM |
Here is my list you can add on to it
Im excluding parenthese cuz im lazy :)
function ontouched function onclicked function player respawned while true do if and then (Can you add anymore ? |
|
|
| Report Abuse |
|
|
|
| 26 Dec 2012 11:24 AM |
| Those are not functions. And I have never heard of ontouched and onclicked and player respawned. |
|
|
| Report Abuse |
|
|
|
| 26 Dec 2012 11:27 AM |
| then what are these ? cuz roblox wiki says all these ? are they just statements ? |
|
|
| Report Abuse |
|
|
noah
|
  |
| Joined: 11 Sep 2006 |
| Total Posts: 18977 |
|
| |
|
|
| 26 Dec 2012 11:50 AM |
Functions are just variables.
function ontouch() end
That's the same as:
ontouch = function() end
Your function can be named anything you want, within valid variable names. You can have a function named HUGGBUGGFLAB243721396498 if you wanted.
if-then, while-do, for-do, repeat-until are all flow blocks. They define the flow of your script. Look up program flow if you want to learn more, as I don't want to go into specifics in this post.
Short answer: technically, none of those are functions. Those are just common names people give to functions. |
|
|
| Report Abuse |
|
|
|
| 26 Dec 2012 12:00 PM |
| print() is a function, nothing you listed though. |
|
|
| Report Abuse |
|
|
|
| 26 Dec 2012 12:02 PM |
| Well print() is a built-in function, pretty much anything can be a function. |
|
|
| Report Abuse |
|
|