A Roblox Community
Would you like to react to this message? Create an account in a few clicks or log in to continue.

A Roblox Community

A community of Robloxians who want to learn to script and build on Roblox Studio.
 
HomeLatest imagesRegisterLog 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
[ Beginner Tutorial...Under Construction... ] Vote_lcap[ Beginner Tutorial...Under Construction... ] Voting_bar[ Beginner Tutorial...Under Construction... ] Vote_rcap 
naknak
[ Beginner Tutorial...Under Construction... ] Vote_lcap[ Beginner Tutorial...Under Construction... ] Voting_bar[ Beginner Tutorial...Under Construction... ] Vote_rcap 
Supernapalm
[ Beginner Tutorial...Under Construction... ] Vote_lcap[ Beginner Tutorial...Under Construction... ] Voting_bar[ Beginner Tutorial...Under Construction... ] Vote_rcap 
m27frogy
[ Beginner Tutorial...Under Construction... ] Vote_lcap[ Beginner Tutorial...Under Construction... ] Voting_bar[ Beginner Tutorial...Under Construction... ] Vote_rcap 
slayer9365
[ Beginner Tutorial...Under Construction... ] Vote_lcap[ Beginner Tutorial...Under Construction... ] Voting_bar[ Beginner Tutorial...Under Construction... ] Vote_rcap 
myrco919
[ Beginner Tutorial...Under Construction... ] Vote_lcap[ Beginner Tutorial...Under Construction... ] Voting_bar[ Beginner Tutorial...Under Construction... ] Vote_rcap 
branefreez
[ Beginner Tutorial...Under Construction... ] Vote_lcap[ Beginner Tutorial...Under Construction... ] Voting_bar[ Beginner Tutorial...Under Construction... ] Vote_rcap 
ninga95
[ Beginner Tutorial...Under Construction... ] Vote_lcap[ Beginner Tutorial...Under Construction... ] Voting_bar[ Beginner Tutorial...Under Construction... ] Vote_rcap 
CloneTrooper787
[ Beginner Tutorial...Under Construction... ] Vote_lcap[ Beginner Tutorial...Under Construction... ] Voting_bar[ Beginner Tutorial...Under Construction... ] Vote_rcap 
raboy117
[ Beginner Tutorial...Under Construction... ] Vote_lcap[ Beginner Tutorial...Under Construction... ] Voting_bar[ Beginner Tutorial...Under Construction... ] Vote_rcap 
Top posting users this month
No user
Latest topics
» Where to go from here.
[ Beginner Tutorial...Under Construction... ] EmptySeptember 14th 2020, 1:20 pm by MrNicNac

» Send me an Email
[ Beginner Tutorial...Under Construction... ] EmptySeptember 14th 2020, 1:16 pm by MrNicNac

» [v1.6.0.0] Lua Script Obfuscator [No Bytecode]
[ Beginner Tutorial...Under Construction... ] EmptyJuly 6th 2015, 7:38 pm by m27frogy

» New Site Possibly
[ Beginner Tutorial...Under Construction... ] EmptyJuly 6th 2015, 4:16 pm by m27frogy

» Ambassador!
[ Beginner Tutorial...Under Construction... ] EmptyApril 15th 2015, 11:40 pm by naknak

» Boop - Tag
[ Beginner Tutorial...Under Construction... ] EmptyApril 13th 2015, 9:46 pm by naknak

» Vip Class Script
[ Beginner Tutorial...Under Construction... ] EmptyApril 13th 2015, 4:54 pm by naknak

» Who's active?!
[ Beginner Tutorial...Under Construction... ] EmptyApril 13th 2015, 4:52 pm by naknak

» Genesis Point
[ Beginner Tutorial...Under Construction... ] EmptyJuly 17th 2014, 7:04 pm by branefreez

» Reward System
[ Beginner Tutorial...Under Construction... ] EmptyJuly 17th 2014, 5:41 am by m27frogy

» Script Request
[ Beginner Tutorial...Under Construction... ] EmptyJuly 10th 2014, 11:43 am by naknak

» local scripts?
[ Beginner Tutorial...Under Construction... ] EmptyJuly 10th 2014, 11:39 am by naknak

» Project: Reconstruction [Died]
[ Beginner Tutorial...Under Construction... ] EmptyJuly 10th 2014, 11:36 am by naknak

» Hi. I am new here
[ Beginner Tutorial...Under Construction... ] EmptyApril 26th 2014, 4:01 pm by altshiftkey

» What's your favorite sport?
[ Beginner Tutorial...Under Construction... ] EmptyJanuary 1st 2014, 2:13 pm by m27frogy

» FlashLight Script
[ Beginner Tutorial...Under Construction... ] EmptyJanuary 1st 2014, 2:11 pm by m27frogy

» Gun Making! [READ DESC]
[ Beginner Tutorial...Under Construction... ] EmptyJanuary 1st 2014, 2:10 pm by m27frogy

» Hi, I am new here!
[ Beginner Tutorial...Under Construction... ] EmptyNovember 26th 2013, 3:33 pm by Keanu73

» Improve Coding
[ Beginner Tutorial...Under Construction... ] EmptyOctober 26th 2013, 1:12 pm by pook03

» Simple Button
[ Beginner Tutorial...Under Construction... ] EmptySeptember 1st 2013, 6:19 pm by branefreez


 

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

Go down 
4 posters

Did this help? ( First Tut!!! )
Yes
[ Beginner Tutorial...Under Construction... ] Vote_lcap50%[ Beginner Tutorial...Under Construction... ] Vote_rcap
 50% [ 2 ]
A Little
[ Beginner Tutorial...Under Construction... ] Vote_lcap0%[ Beginner Tutorial...Under Construction... ] Vote_rcap
 0% [ 0 ]
Ok
[ Beginner Tutorial...Under Construction... ] Vote_lcap0%[ Beginner Tutorial...Under Construction... ] Vote_rcap
 0% [ 0 ]
Not Really
[ Beginner Tutorial...Under Construction... ] Vote_lcap25%[ Beginner Tutorial...Under Construction... ] Vote_rcap
 25% [ 1 ]
No
[ Beginner Tutorial...Under Construction... ] Vote_lcap25%[ Beginner Tutorial...Under Construction... ] Vote_rcap
 25% [ 1 ]
Total Votes : 4
 

AuthorMessage
raboy117
Novice Scripter
Novice Scripter
raboy117


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

[ Beginner Tutorial...Under Construction... ] Empty
PostSubject: [ Beginner Tutorial...Under Construction... ]   [ Beginner Tutorial...Under Construction... ] EmptyJanuary 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
raboy117


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

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

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


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

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

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


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

[ Beginner Tutorial...Under Construction... ] Empty
PostSubject: Re: [ Beginner Tutorial...Under Construction... ]   [ Beginner Tutorial...Under Construction... ] EmptyJanuary 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
naknak


Posts : 878
Join date : 2010-07-30

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

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


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

[ Beginner Tutorial...Under Construction... ] Empty
PostSubject: Re: [ Beginner Tutorial...Under Construction... ]   [ Beginner Tutorial...Under Construction... ] EmptyJanuary 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
raboy117


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

[ Beginner Tutorial...Under Construction... ] Empty
PostSubject: Re: [ Beginner Tutorial...Under Construction... ]   [ Beginner Tutorial...Under Construction... ] EmptyJanuary 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
raboy117


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

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

Better tutorial now.
Back to top Go down
Guest
Guest
avatar



[ Beginner Tutorial...Under Construction... ] Empty
PostSubject: Re: [ Beginner Tutorial...Under Construction... ]   [ Beginner Tutorial...Under Construction... ] EmptyJanuary 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
slayer9365


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

[ Beginner Tutorial...Under Construction... ] Empty
PostSubject: Re: [ Beginner Tutorial...Under Construction... ]   [ Beginner Tutorial...Under Construction... ] EmptyJanuary 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
raboy117


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

[ Beginner Tutorial...Under Construction... ] Empty
PostSubject: Re: [ Beginner Tutorial...Under Construction... ]   [ Beginner Tutorial...Under Construction... ] EmptyJanuary 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
blueymaddog


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

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

nah, your still a newb. lol jk. (B
Back to top Go down
Sponsored content





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

Back to top Go down
 
[ Beginner Tutorial...Under Construction... ]
Back to top 
Page 1 of 1
 Similar topics
-
» how do you script i am a beginner
» Metatables Tutorial
» Tutorial on: 'for' loops
» Instance.new() tutorial
» Metatables Tutorial

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