|
| 21 Jan 2016 12:45 PM |
| Hey anyone know a youtube series or someone that would be willing to teach scripting. I know the basics and i can edit scritps a little mainly properties. (the part i have trouble with is connecting it cuz it doesnt make sense at that part) If you do pm thanks ^^ |
|
|
| Report Abuse |
|
|
hkep
|
  |
| Joined: 19 Jul 2014 |
| Total Posts: 550 |
|
|
| 21 Jan 2016 12:50 PM |
function x() -- change properties end
local brick = workspace.Part
brick.Touched:connect(x) -- connects the function 'x' so whenever brick is touched it will run the function's code
|
|
|
| Report Abuse |
|
|
hkep
|
  |
| Joined: 19 Jul 2014 |
| Total Posts: 550 |
|
|
| 21 Jan 2016 12:53 PM |
What you may have seen before are anonymous functions. The difference between an anonymous function and a named function is that the named one can be indexed through its name. Example:
function hi() -- this is named 'hi' print("Hi") end
script.Parent.Touched:connect(function() -- this is anonymous because it has no name.
end) |
|
|
| Report Abuse |
|
|
|
| 21 Jan 2016 12:53 PM |
| I'm working on a scripting tutorial |
|
|
| Report Abuse |
|
|
|
| 21 Jan 2016 12:55 PM |
| oh you have any episodes yet if so whats the link :D |
|
|
| Report Abuse |
|
|
WoolHat
|
  |
| Joined: 19 May 2013 |
| Total Posts: 1873 |
|
|
| 21 Jan 2016 12:59 PM |
| Use the roblox wiki. The bottom of almost all object pages has a list of detailed events that you can connect to a function. Just for reference. |
|
|
| Report Abuse |
|
|
|
| 21 Jan 2016 01:02 PM |
Drake, while I certainly admire your desire to learn Lua, you must recognize that acquiring scripting knowledge from a sole perspective will likely limit your individual progression greatly, given that interaction with a single individual may directly expose you to potentially-negative bias and logical-restraint.
I would personally suggest that you consider acquiring information regarding "pure" Lua and interacting with knowledgeable users to clarify your knowledge of the concepts on an occasional basis only.
Here is a link to a subjectively "excellent" resource shown below:
http://www.lua.org/pil/ |
|
|
| Report Abuse |
|
|
WoolHat
|
  |
| Joined: 19 May 2013 |
| Total Posts: 1873 |
|
|
| 21 Jan 2016 01:07 PM |
| Try watching and programming alongside YouTube scripters, some commendable guys are peaspod and friaza. |
|
|
| Report Abuse |
|
|
|
| 21 Jan 2016 01:42 PM |
https://www.youtube.com/channel/UCXF7DezJJEEm1kGwmSq_ELg/videos
;) |
|
|
| Report Abuse |
|
|