IronNoob

Please login or register.

Login with username, password and session length
Advanced search  

News:

Migrated to dedicated hosting. Post any weirdness you observe in the Lounge.

Pages: [1] 2

Author Topic: SML ROBLOX Scripting Tutorial 1: Variables  (Read 1106 times)

0 Members and 1 Guest are viewing this topic.

shedletsky

  • Administrator
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1152
    • View Profile
SML ROBLOX Scripting Tutorial 1: Variables
« on: August 03, 2011, 02:14:07 pm »

Just discovered Stickmasterluke's secret trove of Lua scripting wisdom on YouTube. If you are new to scripting, watching these videos may be the easiest way to learn. I actually met SML at the ROBLOX RALLY - he's a really cool guy - it's nice of him to take the time to make these.

Roblox Tutorial Scripting[1] Variables

Post any questions you have here - I'm trying to compose a FAQ for the ROBLOX wiki (I and maybe others will also answer them).

Logged
John Shedletsky on Twitter Counter" width="88" height="26" border="0

Trappingnoobs

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1408
    • View Profile
Re: SML ROBLOX Scripting Tutorial 1: Variables
« Reply #1 on: August 03, 2011, 02:16:17 pm »

Just discovered Stickmasterluke's secret trove of Lua scripting wisdom on YouTube. If you are new to scripting, watching these videos may be the easiest way to learn.

Roblox Tutorial Scripting[1] Variables

Post any questions you have here - I'm trying to compose a FAQ for the ROBLOX wiki (I and maybe others will also answer them).

I HAD MY VOLUME ALL THE WAY UP

FUUUUUUUUUU

Eh, might aswell contribute in some way other than complain that the lightning nearly deafened me.

I can already script but these things confused me when I started, so add these to the FAQ thing. Not sure how you'd phrase the first one as a question. But you need to make them clear somehow.:

Setting a variable to an object doesn't rename the object. It just refferences it. I never used variables for almost 3 months after learning because I was told this by somone.

Why are events always called on...?
->They don't; connect is just a function which you pass a function as an argument to. You don't necessarily need to name those functions anything specific (It's not necessary to name them, for example, onTouched.)

Lots of medium-advanced scripters still think it's necessary to do the second one, especially, so clearing this up would help alot.

Those are two I can think off from the top of my head.

Oh, and some things that I guess could affect new scripters:

How long will it be until I can make a huge place with awesome features and (y'know, describe awesome stuff that people want here. I have a horrendous imagination.)
->It depends a lot on how fast you learn. Generally it takes a few months to learn, but after that, you'll be able to script pretty much anything you want

How do I make multiple peices of a script run at the same time?
->You can simulate it with [[Function Dump/Coroutine Manipulation | coroutines]].

How do I make a car/bus/land vehicle?
->There's no need to script land vehicles anymore, you can use a VehicleSeat!

How do I make an animation for a character?
->(((I have absolutely no idea. CAN we even use the animation objects yet? :L)))

How do I use GUI?
->[[Beginners GUI Guide (Probably broken link, but correct one can be found easily with search)]]

How do I make commands?
->Commands are relatively simple; you just use basic [[Function Dump/String Manipulation|String manipulation]] and connect a function to every entering player so that when they chat it checks if they spoke a command.
« Last Edit: August 03, 2011, 02:28:55 pm by Trappingnoobs »
Logged
monospaced pl0x





no i am not a troll

shedletsky

  • Administrator
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1152
    • View Profile
Re: SML ROBLOX Scripting Tutorial 1: Variables
« Reply #2 on: August 03, 2011, 02:17:38 pm »

Can you please rephrase that as a question?
Logged
John Shedletsky on Twitter Counter" width="88" height="26" border="0

therhino

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 330
  • Did that nigga just steal my bike?
    • View Profile
Re: SML ROBLOX Scripting Tutorial 1: Variables
« Reply #3 on: August 03, 2011, 02:23:34 pm »

I already know RBX.Lua so I wouldn't need this...
Logged
That nigga just stole my bike...

blocco

  • Jr. Member
  • **
  • Offline Offline
  • Posts: 86
  • (ROBLOX) Lua Scripting Extraordinaire RbxAPIMaster
    • View Profile
Re: SML ROBLOX Scripting Tutorial 1: Variables
« Reply #4 on: August 03, 2011, 04:19:49 pm »

This is a great tutorial, but if I didn't know much about coding in general, I would ask, "What does it mean to 'call' a string?" (even though he does sort of use an incorrect term when saying "calling" a string, but still, good tutorial)

I would also ask if there is anything else you could set a variable to.  Or maybe ask for a list of all the possible values.  Those are the only questions I would have after watching this.  But I know all of the answers to them already.   8)
Logged
Well, I'm a scripter.  I know that much.

therhino

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 330
  • Did that nigga just steal my bike?
    • View Profile
Re: SML ROBLOX Scripting Tutorial 1: Variables
« Reply #5 on: August 03, 2011, 04:35:45 pm »

This is a great tutorial, but if I didn't know much about coding in general, I would ask, "What does it mean to 'call' a string?" (even though he does sort of use an incorrect term when saying "calling" a string, but still, good tutorial)

I would also ask if there is anything else you could set a variable to.  Or maybe ask for a list of all the possible values.  Those are the only questions I would have after watching this.  But I know all of the answers to them already.   8)
GO BACK TO THE SCRIPTERS FORUM ON ROBLOX!
Wait... thats where most of us came from.
Logged
That nigga just stole my bike...

blocco

  • Jr. Member
  • **
  • Offline Offline
  • Posts: 86
  • (ROBLOX) Lua Scripting Extraordinaire RbxAPIMaster
    • View Profile
Re: SML ROBLOX Scripting Tutorial 1: Variables
« Reply #6 on: August 03, 2011, 04:36:51 pm »

This is a great tutorial, but if I didn't know much about coding in general, I would ask, "What does it mean to 'call' a string?" (even though he does sort of use an incorrect term when saying "calling" a string, but still, good tutorial)

I would also ask if there is anything else you could set a variable to.  Or maybe ask for a list of all the possible values.  Those are the only questions I would have after watching this.  But I know all of the answers to them already.   8)
GO BACK TO THE SCRIPTERS FORUM ON ROBLOX!
Wait... thats where most of us came from.

Yeah, because no matter how much we try to hide it, we don't really be hatin' on John.  ;)
Logged
Well, I'm a scripter.  I know that much.

therhino

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 330
  • Did that nigga just steal my bike?
    • View Profile
Re: SML ROBLOX Scripting Tutorial 1: Variables
« Reply #7 on: August 03, 2011, 04:37:52 pm »

This is a great tutorial, but if I didn't know much about coding in general, I would ask, "What does it mean to 'call' a string?" (even though he does sort of use an incorrect term when saying "calling" a string, but still, good tutorial)

I would also ask if there is anything else you could set a variable to.  Or maybe ask for a list of all the possible values.  Those are the only questions I would have after watching this.  But I know all of the answers to them already.   8)
GO BACK TO THE SCRIPTERS FORUM ON ROBLOX!
Wait... thats where most of us came from.

Yeah, because no matter how much we try to hide it, we don't really be hatin' on John.  ;)

 ;) ;) ;) ;) ;) ;)
Logged
That nigga just stole my bike...

TheAceMario

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1547
  • vrijheid
    • View Profile
Re: SML ROBLOX Scripting Tutorial 1: Variables
« Reply #8 on: August 03, 2011, 04:38:17 pm »

Thank you StickMasterLuke


You are awesome for making these
Logged

Doogy700

  • Jr. Member
  • **
  • Offline Offline
  • Posts: 70
  • ROBLOX Announcements CEO
    • View Profile
    • ROBLOX Announcements
Re: SML ROBLOX Scripting Tutorial 1: Variables
« Reply #9 on: August 05, 2011, 05:18:19 am »

I am already like an expert in scripting and I don't need this, but I know a lot of others appreciate this because like 3/4 or at least a half of ROBLOX don't know HOW to script or how to script well enough to make some major scripts.

Trappingnoobs

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1408
    • View Profile
Re: SML ROBLOX Scripting Tutorial 1: Variables
« Reply #10 on: August 05, 2011, 05:35:50 am »

I am already like an expert in scripting and I don't need this, but I know a lot of others appreciate this because like 3/4 or at least a half of ROBLOX don't know HOW to script or how to script well enough to make some major scripts.

More like 29/30ths of Roblox don't know how to script.
Logged
monospaced pl0x





no i am not a troll

blocco

  • Jr. Member
  • **
  • Offline Offline
  • Posts: 86
  • (ROBLOX) Lua Scripting Extraordinaire RbxAPIMaster
    • View Profile
Re: SML ROBLOX Scripting Tutorial 1: Variables
« Reply #11 on: August 05, 2011, 11:27:03 am »

I am already like an expert in scripting and I don't need this, but I know a lot of others appreciate this because like 3/4 or at least a half of ROBLOX don't know HOW to script or how to script well enough to make some major scripts.

More like 29/30ths of Roblox don't know how to script.

I predict that 952/1000 ROBLOXians do not know how to take an idea for Roblox and code in in scratch.
Logged
Well, I'm a scripter.  I know that much.

Trappingnoobs

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1408
    • View Profile
Re: SML ROBLOX Scripting Tutorial 1: Variables
« Reply #12 on: August 05, 2011, 11:48:27 am »

I am already like an expert in scripting and I don't need this, but I know a lot of others appreciate this because like 3/4 or at least a half of ROBLOX don't know HOW to script or how to script well enough to make some major scripts.

More like 29/30ths of Roblox don't know how to script.

I predict that 952/1000 ROBLOXians do not know how to take an idea for Roblox and code in in scratch.

Make that 951.99. I've given up making places for Love2D and C#.
Logged
monospaced pl0x





no i am not a troll

LiLDJx

  • Newbie
  • *
  • Offline Offline
  • Posts: 43
    • View Profile
    • ROBLOX-LiLDJx
Re: SML ROBLOX Scripting Tutorial 1: Variables
« Reply #13 on: August 07, 2011, 06:54:25 pm »

Just discovered Stickmasterluke's secret trove of Lua scripting wisdom on YouTube. If you are new to scripting, watching these videos may be the easiest way to learn. I actually met SML at the ROBLOX RALLY - he's a really cool guy - it's nice of him to take the time to make these.

Roblox Tutorial Scripting[1] Variables

Post any questions you have here - I'm trying to compose a FAQ for the ROBLOX wiki (I and maybe others will also answer them).




Cool Thanks! :D
Im trying to learn scripting!
Logged
-LiLDJx     Retexture Artist      (Twitter:@LiLDJX)  ~They see me trollin...They flaming.. Im trollin so try catch me trollin dirtty!!~         LiLDJx

uneekIncendi

  • Newbie
  • *
  • Offline Offline
  • Posts: 43
  • Watching you when you sleep.
    • View Profile
    • ROEWBLAWCKZ.
Re: SML ROBLOX Scripting Tutorial 1: Variables
« Reply #14 on: October 19, 2011, 04:22:16 am »

Yeah.
I really should start learning how to script.
Logged
Mind your own business and stop reading my signature.
Pages: [1] 2
 

Page created in 0.161 seconds with 22 queries.