A Roblox Community

A community of Robloxians who want to learn to script and build on Roblox Studio.
 
HomeFAQRegisterLog in
If you're a experienced coder make some tutorials! It would really help the site grow.
Make sure you read the rules(Which can be found by clicking here)
If you're a beginner at coding, try some tutorials.
We have many Moderators/Admins watching this site. Contact them with Questions.
Let us know what your favorite sport is. By clicking here to vote (Click here)
This site is becoming inactive. Lets make it active.
Log in
Username:
Password:
Log in automatically: 
:: I forgot my password
Top posters
blueymaddog
 
naknak
 
Supernapalm
 
m27frogy
 
slayer9365
 
myrco919
 
branefreez
 
ninga95
 
CloneTrooper787
 
raboy117
 
Top posting users this month
Latest topics
» Send me an Email
January 8th 2016, 10:14 am by naknak

» [v1.6.0.0] Lua Script Obfuscator [No Bytecode]
July 6th 2015, 7:38 pm by m27frogy

» New Site Possibly
July 6th 2015, 4:16 pm by m27frogy

» Ambassador!
April 15th 2015, 11:40 pm by naknak

» Boop - Tag
April 13th 2015, 9:46 pm by naknak

» Vip Class Script
April 13th 2015, 4:54 pm by naknak

» Who's active?!
April 13th 2015, 4:52 pm by naknak

» Where to go from here.
April 13th 2015, 4:51 pm by naknak

» Genesis Point
July 17th 2014, 7:04 pm by branefreez

» Reward System
July 17th 2014, 5:41 am by m27frogy

» Script Request
July 10th 2014, 11:43 am by naknak

» local scripts?
July 10th 2014, 11:39 am by naknak

» Project: Reconstruction [Died]
July 10th 2014, 11:36 am by naknak

» Hi. I am new here
April 26th 2014, 4:01 pm by altshiftkey

» What's your favorite sport?
January 1st 2014, 2:13 pm by m27frogy

» FlashLight Script
January 1st 2014, 2:11 pm by m27frogy

» Gun Making! [READ DESC]
January 1st 2014, 2:10 pm by m27frogy

» Hi, I am new here!
November 26th 2013, 3:33 pm by Keanu73

» Improve Coding
October 26th 2013, 1:12 pm by pook03

» Simple Button
September 1st 2013, 6:19 pm by branefreez


Share | 
 

 [ Beginner Tutorial...Under Construction... ]

View previous topic View next topic Go down 

Did this help? ( First Tut!!! )
Yes
50%
 50% [ 2 ]
A Little
0%
 0% [ 0 ]
Ok
0%
 0% [ 0 ]
Not Really
25%
 25% [ 1 ]
No
25%
 25% [ 1 ]
Total Votes : 4
 

AuthorMessage
raboy117
Novice Scripter
Novice Scripter
avatar

Posts : 75
Join date : 2011-01-19
Age : 20
Location : Canada, PEI, Charlottetown

PostSubject: [ Beginner Tutorial...Under Construction... ]   January 20th 2011, 8:19 pm

Intro

Hello, Scripting in Lua can be very helpful.
For instance, Lua will help you make better places than those who cant script.
All though, When your learning Lua it can be Very difficult.
I'm still learning Lua aswell, Well Good luck in the scripting world of Lua!

Functions

Scripting is nothing without functions.


Functions are everywhere in the world of Lua.
Functions can be made or you can use already-made Functions such as

function
if
then
do
ect.

There are tons of functions!

Code:
functionaoz = Instance.new("Function")
I think thats how you make a function.
Exscuse me if im wrong.

Functions are very Important

Properties

Almost everything has a property!
For instance Insert a brick from the Insert menu it doesnt matter what kind.
So, lets change the brick's name.

Code:
game.Workspace.Part.Name = "HdFp02"
So to do it a more fun way you can do this

Code:
game.Workspace.Part.Name = "Part"
   wait(4)
   game.Workspace.Part.Name = "KillerX210"
Then we made a name change more difficult by 1 percent but its cooler

say we wanna name it Kill Is COol 101
we say

Code:
game.Workspace.Part.Name = ["Kill Is COol 101"]
Now changing reflectance brick color and transparency is the same

Code:
game.Workspace.Part.Reflectance = 5.5 --That makes it reflectancy 5.5 it could also be Transparency just by changing reflectance to transparency
Now Brick color is a little more complicated

Ill cover it later

Now instead of saying game.Workspace.Part All the time you could create a Variable wich i will cover next!

Variables

A variable is kind of important to shorten scripts.

For instance intead of saying game.Workpace.Part all the time you could create a variable

Variables are Stuff that stand for stuff like z could mean Part
or Message or hint it can stand for almost everything

Code:
Example: x = Instance.new("Message")
Now x stands for an Instance that is a message
or x = game.Workspace.Part
Now x stands for a Part

But x cannot have 2 values

so you could use a, b, c, d, e, f, g

But variables can go from as easy as L to as complicated as x2StarJammer/IncludedForYouToday
Variables can be anything of your choice
so

Code:
CatInTheHat = Instance.new("Hint")
Now CatInTheHat is a Variable Meaning it stands for a hint!

Positioning

Positioning is Important in Lua to

There are 2 types of positions CFrame and Position

for instance i want to move a brick on the edge of another brick or in the air

Ex:
Code:
game.Workspace.Part.Position = Vector3.new(10,10,10)
So we changed its position to X = 10 y = 10 and Z = 10

Vector3 is a Movement function so Vector 3 is the numerals meaning it needs 3 numerals. 10 10 10 is the Numerals.

Ex:
Code:
game.Workspace.Part.CFrame.Value = Vector3.new(101,20,40)
Thats a CFrame Value their very Useful.

So i just made that brick collide with any brick near it or i changed its CFrame value.

Arguments

Arguments are very very important without an argument the script wouldn't work.

Ex :
Code:
game.Workspace.Part.Position = Vector3.new(12,20,14)
Can you guess what the argument was there?

The argument passed there is 12 20 14 most arguments come before functions with a () or :

Ex:
Code:
game.Workspace.Part.Position = Vector3.new(Cheezburger,2,10)
That wouldnt work because cheezburger isnt an argument but if you do this

Code:
Cheezburger = 5

game.Workspace.Part.Position = Vector3.new(Cheezburger,2,10)
That would set the position to 5 2 10 Interesting right?

now watch this...

Code:
game.Workspace.Part.Position = Vector3.new(a, b , c )
Same as cheezburger wont work but...

Code:
a = 10

b = 10

c = 10

game.Workspace.Part.Position = Vector3.new(a, b, c)
That would work!

Isnt Positioning Fun?

Tables

Tables are used to store stuff in...
For example, ever seen a VIP door/ Admin script?

It says
Code:
adminlist = {"raboy117"}

Thats a table...

just say

Code:
coolppl = ("websiteRobloxYouNeedUs")

And to add on to that we do
Code:
coolppl = ("websiteRobloxYouNeedUs","Roblox")

There we go!
and tables... Witch ill cover next.

MetaTables

Tables can have tables too!!!

--[[This is UNDER CPNSTRUCTION, Do not flame me, If you have any Ideas, Please message me on roblox or here, If you wish to help me out please give me suggestions for this. Thanks! ]]--


Last edited by raboy117 on January 22nd 2011, 5:00 pm; edited 2 times in total (Reason for editing : Updating, adding code, etc.)
Back to top Go down
raboy117
Novice Scripter
Novice Scripter
avatar

Posts : 75
Join date : 2011-01-19
Age : 20
Location : Canada, PEI, Charlottetown

PostSubject: Re: [ Beginner Tutorial...Under Construction... ]   January 20th 2011, 8:56 pm

I Hoped this helped :)
Back to top Go down
raboy117
Novice Scripter
Novice Scripter
avatar

Posts : 75
Join date : 2011-01-19
Age : 20
Location : Canada, PEI, Charlottetown

PostSubject: Re: [ Beginner Tutorial...Under Construction... ]   January 21st 2011, 8:50 pm

:/
Barely anyone read this D:
Back to top Go down
raboy117
Novice Scripter
Novice Scripter
avatar

Posts : 75
Join date : 2011-01-19
Age : 20
Location : Canada, PEI, Charlottetown

PostSubject: Re: [ Beginner Tutorial...Under Construction... ]   January 21st 2011, 9:03 pm

Supernapalm wrote:
im considering you a spammer for doing this:

_________________
Site Hunter

_0900 R0
5)4500
0
45
45
0
0
0

Double M ( Math Master )
That's How I'm known in my class :D

how is that Spam????

No sense. Thats my signature ._.
Back to top Go down
naknak
Administrator
Administrator
avatar

Posts : 878
Join date : 2010-07-30

PostSubject: Re: [ Beginner Tutorial...Under Construction... ]   January 21st 2011, 9:10 pm

Why do you both have the same signature?
Back to top Go down
raboy117
Novice Scripter
Novice Scripter
avatar

Posts : 75
Join date : 2011-01-19
Age : 20
Location : Canada, PEI, Charlottetown

PostSubject: Re: [ Beginner Tutorial...Under Construction... ]   January 21st 2011, 9:11 pm

We don't...
he just said that thats spam when its my signature SO NO SPAM!
Back to top Go down
raboy117
Novice Scripter
Novice Scripter
avatar

Posts : 75
Join date : 2011-01-19
Age : 20
Location : Canada, PEI, Charlottetown

PostSubject: Re: [ Beginner Tutorial...Under Construction... ]   January 22nd 2011, 5:02 pm

Updated it... Added Tables and more, fixed code and more...
Back to top Go down
raboy117
Novice Scripter
Novice Scripter
avatar

Posts : 75
Join date : 2011-01-19
Age : 20
Location : Canada, PEI, Charlottetown

PostSubject: Re: [ Beginner Tutorial...Under Construction... ]   January 22nd 2011, 6:19 pm

Better tutorial now.
Back to top Go down
Guest
Guest



PostSubject: Re: [ Beginner Tutorial...Under Construction... ]   January 22nd 2011, 8:31 pm

Too much false information, and not a good tutorial overall.
Back to top Go down
slayer9365
Expert Scripter
Expert Scripter
avatar

Posts : 233
Join date : 2010-07-31
Age : 22

PostSubject: Re: [ Beginner Tutorial...Under Construction... ]   January 22nd 2011, 8:45 pm

Quote :
There are tons of functions!

Code:
functionaoz = Instance.new("Function")

I think thats how you make a function.
Exscuse me if im wrong.

there is no object "Function" so you are wrong.
Back to top Go down
raboy117
Novice Scripter
Novice Scripter
avatar

Posts : 75
Join date : 2011-01-19
Age : 20
Location : Canada, PEI, Charlottetown

PostSubject: Re: [ Beginner Tutorial...Under Construction... ]   January 23rd 2011, 12:27 am

... Read that quote " Excuse me if im wrong.".........
Oh and 1 first tutorial, 2 I started working on this when i was a Newb, 3 I wrote this when i was tired.
Back to top Go down
blueymaddog
Administrator
Administrator
avatar

Posts : 1081
Join date : 2010-12-09
Age : 19

PostSubject: Re: [ Beginner Tutorial...Under Construction... ]   March 11th 2011, 7:23 am

nah, your still a newb. lol jk. (B

_________________
blueymaddog
Administrator • Moderator • Expert Scripter
PM: blueymaddog
<+1 post. ujelly?>
Back to top Go down
Sponsored content




PostSubject: Re: [ Beginner Tutorial...Under Construction... ]   

Back to top Go down
 
[ Beginner Tutorial...Under Construction... ]
View previous topic View next topic Back to top 
Page 1 of 1
 Similar topics
-
» Unity3D BEGINNER Tutorial
» BEGINNER PROGRAMMING TUTORIAL (TEXT)
» Valkyrie Construction Issues
» My 1500 pts. Army - beginner
» Great Tank and Weathering tutorial

Permissions in this forum:You cannot reply to topics in this forum
A Roblox Community :: Tutorials and Resources :: Beginner-
Jump to: