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
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Scripting tutorial - Lesson 1

Previous Thread :: Next Thread 
LollipopGamer99 is not online. LollipopGamer99
Joined: 16 Feb 2015
Total Posts: 3167
02 Nov 2016 06:03 AM
Hi, if you are new to scripting, I suppose I should teach you.

Lesson 1:
For today I am gonna teach you basic scripts, which is not hard.
So first of all, the output is where you receive messages from print. How do we use print? Well it's easy.

First type:
print
DO NOT add any capitals, they stay lowercase.
Then add in:
print()

And type in the quotation marks
print("")
And type anything you want!
print("I love cookies")
When you run the script, it will say what you wrote in the output!
Amazing, right?

Now, let's suppose you want to add a part into workspace.
Type Instance.new
And then add on:
Instance.new("Part",game.Workspace)
This will add a new part in workspace!

That's it for lesson 1.
Lesson 2 coming SOON!


the dog ate my siggy https://www.roblox.com/library/400786493/MOGOLOVONIO
Report Abuse
plmkoo is not online. plmkoo
Joined: 05 May 2013
Total Posts: 16998
02 Nov 2016 06:04 AM
This is potato scripting go into slightly deeper stuff
Report Abuse
McJeterwet is not online. McJeterwet
Joined: 15 Sep 2016
Total Posts: 106
02 Nov 2016 06:06 AM
why did you post this?
Report Abuse
Spaghetti_Sauce is not online. Spaghetti_Sauce
Joined: 28 May 2016
Total Posts: 329
02 Nov 2016 06:06 AM
what a horrible tutorial everybody knows these
Report Abuse
jy29 is not online. jy29
Joined: 25 May 2012
Total Posts: 984
02 Nov 2016 06:08 AM
The wiki is a thing, but I guess there's no problem with this.
Report Abuse
LollipopGamer99 is not online. LollipopGamer99
Joined: 16 Feb 2015
Total Posts: 3167
02 Nov 2016 06:11 AM
Guys, chill, this is only lesson 1 for beginners, if it's lesson 20 or something it's gonna be hard,
But lesson 1 starts of easy then goes to hard


the dog ate my siggy https://www.roblox.com/library/400786493/MOGOLOVONIO
Report Abuse
TabooAzazazaz is not online. TabooAzazazaz
Joined: 03 Mar 2016
Total Posts: 17189
02 Nov 2016 06:12 AM
##############################################################################################################################################################
Report Abuse
Funnycooldude22 is not online. Funnycooldude22
Joined: 10 Jun 2016
Total Posts: 629
02 Nov 2016 06:12 AM
Are you a teacher or something? lol

cool
Report Abuse
AngusOP_YT is not online. AngusOP_YT
Joined: 24 Apr 2016
Total Posts: 510
02 Nov 2016 06:13 AM
ITS SO EASY THAT EVEN A NOTE 7 CAN DO IT xD
Report Abuse
LollipopGamer99 is not online. LollipopGamer99
Joined: 16 Feb 2015
Total Posts: 3167
02 Nov 2016 06:17 AM
Lesson 2 - Destroying and removing

Hi, so we have gone through lesson 1. But lesson 2 is pretty challenging for beginner scripters

So, let's start with our part!

Type:
game,Workspace.Part

Now, the part's parent is workspace, and workspace's parent is game. This locates where the part is. So let's destroy our part!
Type:
game.Workspace.Part:Destroy()

You have destroyed a part!
So removing is different, it just removes it, but destroying, it DESTROYS the part.
Type: game,Workspace.Part:remove()

There!

Lesson 3 coming soon!


the dog ate my siggy https://www.roblox.com/library/400786493/MOGOLOVONIO
Report Abuse
LollipopGamer99 is not online. LollipopGamer99
Joined: 16 Feb 2015
Total Posts: 3167
02 Nov 2016 06:18 AM
SORRY MY KEYBOARD IS USELESS!
ITS game.Workspace not game,Workspace

Sorry, MY KEYBOARD IS SO USELESS! PRESSED THE WRONG KEY


the dog ate my siggy https://www.roblox.com/library/400786493/MOGOLOVONIO
Report Abuse
VisturisGaming is not online. VisturisGaming
Joined: 30 Aug 2012
Total Posts: 2010
02 Nov 2016 06:22 AM
I do not know how to script AT ALL, I want to learn but I think I have ADHD.


Baby, baby, baby https://youtu.be/foGVmO0Udsg
Report Abuse
Spaghetti_Sauce is not online. Spaghetti_Sauce
Joined: 28 May 2016
Total Posts: 329
02 Nov 2016 06:23 AM
:remove() is deprecated?
Report Abuse
LollipopGamer99 is not online. LollipopGamer99
Joined: 16 Feb 2015
Total Posts: 3167
02 Nov 2016 09:47 AM
Lesson 3 - BrickColors

Hi, now this is very challenging for beginners

So BrickColors are colors for parts.
So if you want to insert a part, and add a color to it, we type:

Instance.new("Part",game.Workspace)

Then we add:
Instance.new("Part",game.Workspace).BrickColor = BrickColor.new("Bright Red")

And your done!


the dog ate my siggy https://www.roblox.com/library/400786493/MOGOLOVONIO
Report Abuse
Clurny is not online. Clurny
Joined: 28 Apr 2010
Total Posts: 12046
02 Nov 2016 09:51 AM
too basic

Report Abuse
VirtuaI_Riot is not online. VirtuaI_Riot
Joined: 16 Mar 2014
Total Posts: 13759
02 Nov 2016 09:53 AM
I know a potato who can do this


"Just because you took longer than others, doesn't mean you failed."
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
02 Nov 2016 10:15 AM
LUL his shirt is pointing to his mom for making him
Report Abuse
LollipopGamer99 is not online. LollipopGamer99
Joined: 16 Feb 2015
Total Posts: 3167
02 Nov 2016 10:34 AM
Lesson 4 - Loops

Ok, let's learn about 'while'

While is like something happens, and keeps on going on

Like:

while game.Players.Player1.Head.Transparency == 1 (ADD 2 equals since it's a loop!!) do
Instance.new("Part",game.Workspace)

end (and add an end, otherwise this will loop your ENTIRE script!)


Now, imagine if you can make it loop, FOREVER!
This is when while true do comes in!

While true do in the next lesson!


the dog ate my siggy https://www.roblox.com/library/400786493/MOGOLOVONIO
Report Abuse
LollipopGamer99 is not online. LollipopGamer99
Joined: 16 Feb 2015
Total Posts: 3167
02 Nov 2016 10:40 AM
Oops sorry it's game.Workspace.Player.Head
Sorry guys


the dog ate my siggy https://www.roblox.com/library/400786493/MOGOLOVONIO
Report Abuse
Zarkonan_Zenheart is not online. Zarkonan_Zenheart
Joined: 29 May 2012
Total Posts: 610
02 Nov 2016 12:23 PM
Lesson 5 - efficiency
NEVER DO THIS:
Instance.new("Part",game.Workspace).BrickColor = BrickColor.new("Bright Red")
EVER. EVER. NO. BAD!



Report Abuse
Deafgift100 is not online. Deafgift100
Joined: 09 May 2010
Total Posts: 3958
02 Nov 2016 12:30 PM
Also, you should always set the parent AFTER creating the instance and setting the properties. Doing otherwise causes unnecessary collision checks for parts. Less so for values, but still.
Report Abuse
LollipopGamer99 is not online. LollipopGamer99
Joined: 16 Feb 2015
Total Posts: 3167
03 Nov 2016 07:37 AM
Eh


the dog ate my siggy https://www.roblox.com/library/400786493/MOGOLOVONIO
Report Abuse
LilMcManiac is not online. LilMcManiac
Joined: 31 Oct 2011
Total Posts: 2812
03 Nov 2016 08:47 AM
HORRIBLE tutorial. "Brickcolor is something that is very hard for beginners".

Bud, listen up. That is not even remotely hard for beginners.

Also, make sure you use the up to date methods, and stop posting these horrible tutorials. Your a beginner scripter yourself.

while game.Workspace.Head.Transparency == 0 do
Instance.new("Part",workspace)
end

That will break the game, add a freakin' wait.
Report Abuse
spyspace12 is online. spyspace12
Joined: 16 Nov 2012
Total Posts: 615
03 Nov 2016 08:52 AM
This is what the wiki is for.


R$12,714 -- <_< well then <_<
Report Abuse
xSoulSpectrumx is not online. xSoulSpectrumx
Joined: 30 Nov 2011
Total Posts: 2976
03 Nov 2016 09:14 AM
http://wiki.roblox.com/index.php?title=AllTutorials#Scripting
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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