A Roblox Community
You must log in to view most of the sites content. If you do not already have an account click Register below...

A Roblox Community

A community of Robloxians who want to learn to script and build on Roblox Studio.
 
HomePortalFAQRegisterLog 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 on automatically: 
:: I forgot my password
Top posters
blueymaddog
 
naknak
 
Supernapalm
 
slayer9365
 
myrco919
 
m27frogy
 
ninga95
 
CloneTrooper787
 
raboy117
 
trappingnoobs
 
Top posting users this month
m27frogy
 
myrco919
 
blueymaddog
 
ninga95
 
naknak
 
Latest topics
» Keylogging/getting the mouse unnoticed
May 16th 2012, 8:43 pm by naknak

» Nederlands
May 16th 2012, 11:52 am by m27frogy

» みなさん、こんにちは!
May 16th 2012, 10:32 am by myrco919

» Try out the panel!
May 16th 2012, 10:30 am by myrco919

» The Local Script: A Robloxian's Worst Nightmare
May 16th 2012, 10:26 am by myrco919

» You're lost.
May 14th 2012, 4:36 am by m27frogy

» Good news, well sorta!
May 9th 2012, 8:29 pm by ninga95

» AIR, Artificial Intelligence Revised
May 5th 2012, 6:35 am by m27frogy

» local script help:
April 7th 2012, 8:22 am by Lukasm

» How to loop regen creations.
April 7th 2012, 6:34 am by MrNicNac

» Refering to functions as objects?
March 28th 2012, 8:29 am by Sethalonian

» Help new people find their way around the website
March 22nd 2012, 11:43 pm by blueymaddog

» I wanna see if anyone can
March 19th 2012, 1:46 am by blueymaddog

» Dispute Rules
March 14th 2012, 1:22 am by blueymaddog

» Explaining the Basics of a Script with Example
March 11th 2012, 6:37 pm by blueymaddog

» Java or C?
March 10th 2012, 8:48 pm by blueymaddog

» Talk about your favourite hobbies!
March 10th 2012, 8:45 pm by blueymaddog

» Metatables Tutorial
March 10th 2012, 8:43 pm by blueymaddog

» Rules of this forum. Please read!
March 9th 2012, 1:35 pm by blueymaddog

» Epic Ice King Staff
March 9th 2012, 1:34 pm by blueymaddog


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
Moderator
Moderator


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

PostSubject: [ Beginner Tutorial...Under Construction... ]   January 20th 2011, 4: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! ]]--

_________________
Site Hunter, Moderator.


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


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

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

I Hoped this helped :)

_________________
Site Hunter, Moderator.
Back to top Go down
raboy117
Moderator
Moderator


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

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

:/
Barely anyone read this D:

_________________
Site Hunter, Moderator.
Back to top Go down
raboy117
Moderator
Moderator


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

PostSubject: Re: [ Beginner Tutorial...Under Construction... ]   January 21st 2011, 5: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 ._.

_________________
Site Hunter, Moderator.
Back to top Go down
naknak
Administrator
Administrator


Posts: 855
Join date: 2010-07-30

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

Why do you both have the same signature?
Back to top Go down
raboy117
Moderator
Moderator


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

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

We don't...
he just said that thats spam when its my signature SO NO SPAM!

_________________
Site Hunter, Moderator.
Back to top Go down
raboy117
Moderator
Moderator


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

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

Updated it... Added Tables and more, fixed code and more...

_________________
Site Hunter, Moderator.
Back to top Go down
raboy117
Moderator
Moderator


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

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

Better tutorial now.

_________________
Site Hunter, Moderator.
Back to top Go down
NotAPotato
Expert Scripter
Expert Scripter


Posts: 40
Join date: 2011-01-21

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

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


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

PostSubject: Re: [ Beginner Tutorial...Under Construction... ]   January 22nd 2011, 4: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
Moderator
Moderator


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

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

... 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.

_________________
Site Hunter, Moderator.
Back to top Go down
blueymaddog
Administrator
Administrator


Posts: 1108
Join date: 2010-12-09
Age: 13

PostSubject: Re: [ Beginner Tutorial...Under Construction... ]   March 11th 2011, 3: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
 

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

View previous topic View next topic Back to top 
Page 1 of 1

 Similar topics

-
» Beginner Guide!!!!
» construction de VX
» Kurayaminoko [Under Construction]
» Maplestory Java tutorial
» Reign of the undead 2.0 [Tutorial]

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