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
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Can someone give me a lecture on LUA scripting?

Previous Thread :: Next Thread 
Xyrz is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. Xyrz
Joined: 11 Mar 2013
Total Posts: 27
13 Mar 2013 02:58 PM
Alright. I guess I could try
Report Abuse
zars15 is not online. 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
masterblokz is not online. masterblokz
Joined: 17 Nov 2010
Total Posts: 9517
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 is not online. 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 is not online. 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 is not online. 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
MassiveGman is not online. MassiveGman
Joined: 23 Jan 2011
Total Posts: 2019
13 Mar 2013 03:25 PM


lesson one
Lua*

|-MassiveGman-| ~|Law Of Inertia|~
Report Abuse
Xyrz is not online. 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 is not online. 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
SamuelKingx is not online. SamuelKingx
Joined: 27 Jan 2012
Total Posts: 3472
13 Mar 2013 03:35 PM
Title correction.
Report Abuse
Xyrz is not online. Xyrz
Joined: 11 Mar 2013
Total Posts: 27
13 Mar 2013 03:41 PM
Lol
Report Abuse
velibor is not online. 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
AkyraTheWolf is not online. AkyraTheWolf
Joined: 08 Jun 2012
Total Posts: 7768
13 Mar 2013 03:48 PM
http://wiki.roblox.com/index.php/Absolute_beginner%27s_guide_to_scripting
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