Xyrz
|
  |
| Joined: 11 Mar 2013 |
| Total Posts: 27 |
|
|
| 13 Mar 2013 02:49 PM |
| Well - I tried watching stickmasterluke's videos but then they got cut off but I need someone who can make me an advanced scripter. Any help? I can pay. |
|
|
| Report Abuse |
|
|
zars15
|
  |
| Joined: 10 Nov 2008 |
| Total Posts: 9999 |
|
|
| 13 Mar 2013 02:52 PM |
| Start experimenting and trying to learn more? That's how learning process works. |
|
|
| Report Abuse |
|
|
Xyrz
|
  |
| Joined: 11 Mar 2013 |
| Total Posts: 27 |
|
|
| 13 Mar 2013 02:55 PM |
| Yeah I guess but I am not really one to "experiment" i don't really get the "parent" stuff. |
|
|
| Report Abuse |
|
|
zars15
|
  |
| Joined: 10 Nov 2008 |
| Total Posts: 9999 |
|
|
| 13 Mar 2013 02:57 PM |
| Well use roblox studio, it'll be easy to understand. In explorer you can see how each object is inside other object. So property Parent of object A is associated with object B, that hold's the A object. |
|
|
| Report Abuse |
|
|
Xyrz
|
  |
| Joined: 11 Mar 2013 |
| Total Posts: 27 |
|
|
| 13 Mar 2013 02:58 PM |
| Alright. I guess I could try |
|
|
| Report Abuse |
|
|
zars15
|
  |
| Joined: 10 Nov 2008 |
| Total Posts: 9999 |
|
|
| 13 Mar 2013 03:01 PM |
It's quite easy. Look:
AwesomeModel ---SomeKindOfPart ----Script
print(script.Parent.Name) print(script.Parent.Parent.Name)
>SomeKindOfPart >AwesomeModel |
|
|
| Report Abuse |
|
|
|
| 13 Mar 2013 03:04 PM |
Parent, is like parent of a part.
if theres a brick inside a model, the model is the bricks parent, and the brick is the parent's child. |
|
|
| Report Abuse |
|
|
Xyrz
|
  |
| Joined: 11 Mar 2013 |
| Total Posts: 27 |
|
|
| 13 Mar 2013 03:17 PM |
Thanks alot - I found out how to make a calculator =
A= 80
B=20
C=A+B or A/B or A*B or A-B
Comes up with it all in output. |
|
|
| Report Abuse |
|
|
zars15
|
  |
| Joined: 10 Nov 2008 |
| Total Posts: 9999 |
|
|
| 13 Mar 2013 03:20 PM |
Lol, don't write it like:
"C=A+B or A/B or A*B or A-B"
because that actually would count as code. Not to confuse you, but here is example:
A = 1
B = A == 0
print(B)
>false |
|
|
| Report Abuse |
|
|
Xyrz
|
  |
| Joined: 11 Mar 2013 |
| Total Posts: 27 |
|
|
| 13 Mar 2013 03:23 PM |
No I didn't write it exactly like that I have done it correctly. It was just an example
|
|
|
| Report Abuse |
|
|
|
| 13 Mar 2013 03:25 PM |
lesson one Lua*
|-MassiveGman-| ~|Law Of Inertia|~ |
|
|
| Report Abuse |
|
|
Xyrz
|
  |
| Joined: 11 Mar 2013 |
| Total Posts: 27 |
|
|
| 13 Mar 2013 03:27 PM |
This is what I did and it worked:
-- Basic Script TEST
A= 30.567
B = 34.64
C = A+B
D = A-B
E = A/B
F = A*B
print(C)
print(D)
print(E)
print(F) |
|
|
| Report Abuse |
|
|
zars15
|
  |
| Joined: 10 Nov 2008 |
| Total Posts: 9999 |
|
|
| 13 Mar 2013 03:31 PM |
Good. You could just done like:
print(A+B) print(A-B)
And so on. |
|
|
| Report Abuse |
|
|
| |
|
Xyrz
|
  |
| Joined: 11 Mar 2013 |
| Total Posts: 27 |
|
| |
|
velibor
|
  |
| Joined: 24 Nov 2009 |
| Total Posts: 1003 |
|
|
| 13 Mar 2013 03:47 PM |
Nice job, by writing your first code.
This things you should learn : 1) Functions 2) Loops (for, while, repeat until) 3) Events 4) Annaymous events 5) Tables 6) The basic methods :GetChildren(), etc
The things that you should be aware off : - Write clean code. Use Tab to make your code readable for you at all the time - Use notes by -- (Single line) or --[[ Comment here ]] -- Multiline to clearify your code for yourself and others. - Learning RBX.Lua takes a long time ;-)
To read on the Wiki : - Look up the information on the Wiki - Read Camoy's Cookbook.
After that we can do some more advanced stuff |
|
|
| Report Abuse |
|
|
|
| 13 Mar 2013 03:48 PM |
| http://wiki.roblox.com/index.php/Absolute_beginner%27s_guide_to_scripting |
|
|
| Report Abuse |
|
|