|
| 26 Apr 2015 08:58 AM |
what's up scripters. i really need to learn how ti script. I basically know how "local" works (it defines a variable to be set into a property) and SOME basic functions. I really don't know how scripting in LUA works. Anyone wanna teach me how to script? I'm 13 but a fast learner :/
so yeah, teach me senpais |
|
|
| Report Abuse |
|
|
|
| 26 Apr 2015 08:59 AM |
| Incorrect. local means it will be acessable from any part inside the environment. But i can teach you. |
|
|
| Report Abuse |
|
|
|
| 27 Apr 2015 06:14 AM |
| I've seen your Avatar's description. Thanks for your cooperation (and sorry xD, I was wrong about local lel) I can't skype or any othe social means of communication outside roblox. I'll send you a friend request and let's just chat/pm at each other. See ya. |
|
|
| Report Abuse |
|
|
eLunate
|
  |
| Joined: 29 Jul 2014 |
| Total Posts: 13268 |
|
|
| 27 Apr 2015 06:24 AM |
Pff no what is a scripter
local is just a modifier for variable declarations that adds the variable to the scope instead of the environment table |
|
|
| Report Abuse |
|
|
|
| 28 Apr 2015 07:31 AM |
| I don't get how scripts in LUA works. I don't know what programming language should I compare it with.. |
|
|
| Report Abuse |
|
|
Goulstem
|
  |
| Joined: 04 Jul 2012 |
| Total Posts: 7177 |
|
|
| 28 Apr 2015 07:36 AM |
The 'local' keyword can be used to make variables held in the local environment - e.g. the scope they were defined in, rather than the global environment.
function a() local b = 'Hi' print(b) --> Hi end
print(b) --> nil |
|
|
| Report Abuse |
|
|
|
| 28 Apr 2015 08:48 AM |
start with this and dont rush read carefully http://wiki.roblox.com/index.php?title=In-Depth_Scripting_Guide
Space Is A Mysterious Place |
|
|
| Report Abuse |
|
|
|
| 28 Apr 2015 11:10 AM |
| @Goul, fail you never called the function |
|
|
| Report Abuse |
|
|
iiEssence
|
  |
| Joined: 18 Jun 2014 |
| Total Posts: 3467 |
|
|
| 28 Apr 2015 11:21 AM |
| He didn't call the function on purpose to show that the 'b' is nil outside of the function. |
|
|
| Report Abuse |
|
|
|
| 28 Apr 2015 12:57 PM |
| Even if "b" wasn't local in the function, it still would have been nil since he never called the function that gives the variable its value. Your argument is invalid. |
|
|
| Report Abuse |
|
|
|
| 28 Apr 2015 01:33 PM |
"Incorrect. local means it will be acessable from any part inside the environment. But i can teach you."
fish, I understand you want to help your reputation after... Well, y'know, but don't try to talk smart like that when you have no idea.
local means it will be accessible from any part inside the scope, and not on the outside. |
|
|
| Report Abuse |
|
|
|
| 28 Apr 2015 06:42 PM |
| What's the "scope"?. I always thought that "local" defines another function to be set into a variable or named to be a variable. Nil means empty or novalue right? And also, I want to figure out a pattern on LUA scripts. |
|
|
| Report Abuse |
|
|
|
| 28 Apr 2015 06:45 PM |
NOPE! Advertising opportunity!!!!
http://www.roblox.com/My/Sets.aspx?id=1460145
~R.I.P ROBLOX: http://www.roblox.com/Firefighter-Helmet-item?id=1081377 ~ |
|
|
| Report Abuse |
|
|
|
| 30 Apr 2015 06:40 AM |
You have been reported, FishIsBetterThanYou
And please, I'm just beginning to script. Don't advertise here. |
|
|
| Report Abuse |
|
|
|
| 30 Apr 2015 06:55 AM |
I doubt you need a "great scripter" to teach you. Most people on here who are actual "great scripters" actually are just great at math. Scripting lua takes very little skill, and mostly depends on your ability to memorize functions and keywords.
Really guys.... who cares what the specific definition of local is. To me it means just that,local. a local variable is local to whatever function / if then that it is in and a local script is local to the client. I hate it when people get so specific about things when it doesn't matter.....
Anyways, didn't just post to say that. If you have any scripting questions I would be glad to help. If you need to know about my scripting skills go ahead and check out either my "persistent procedural generation" place or my "bounty hunters" place. |
|
|
| Report Abuse |
|
|
darkwisp
|
  |
| Joined: 07 Apr 2010 |
| Total Posts: 22653 |
|
|
| 30 Apr 2015 07:45 AM |
"(it defines a variable to be set into a property)"
WHAT THE BLOODY HELL? |
|
|
| Report Abuse |
|
|
darkwisp
|
  |
| Joined: 07 Apr 2010 |
| Total Posts: 22653 |
|
|
| 30 Apr 2015 07:46 AM |
"Incorrect. local means it will be acessable from any part inside the environment. But i can teach you."
What is wrong with you people? You are all insane... Star graving mad! |
|
|
| Report Abuse |
|
|
| |
|
|
| 30 Apr 2015 08:11 AM |
Any way in how you can teach me to script? ROBLOX gives little examples and details on upon giving tutorials on scripting :/
So, what mathskills should I learn? I know logic and reasoning, some algbraic equations (I'm at solving quadratic equations on a deeper depth).
If you know the game blocksworld at the apple store, I want it to be that simple to me at programming :3
Thanks! |
|
|
| Report Abuse |
|
|
|
| 30 Apr 2015 08:26 AM |
Yes, go ahead and fr me and we can talk with messages.
The most math you need to know for most things is trigonometry (for making guns point to where you are aiming... ect.), although you will be fine with just some basic algebra knowledge.
Any math beyond that i consider unnecessary, Unless you are planning on generating animations.
|
|
|
| Report Abuse |
|
|
CrowClaws
|
  |
| Joined: 04 Jul 2010 |
| Total Posts: 4466 |
|
|
| 30 Apr 2015 09:18 AM |
Scripting is something you learn by yourself.
pls.
Also it's Lua, not LUA. Please stop saying "LUA" |
|
|
| Report Abuse |
|
|
|
| 01 May 2015 12:13 AM |
^Crow Yeah sure, whatever. It doesn't matter because people have different pronounciation of the language. It still the same as how you pronounce it with your mouth. And also, I could've learn Lua myself, but not all people are the same. Not like you, I'm not a full self-learner. And also, I seek help from the society, because none can live and learn by his own.
Anyways, I WILL learn basic trigo this year. And also, I'm not In to animations, so yeah, I'll just PM you some things I wanna learn. :3 Thanks guys.
|
|
|
| Report Abuse |
|
|
chimmihc
|
  |
| Joined: 01 Sep 2014 |
| Total Posts: 17143 |
|
|
| 01 May 2015 01:05 AM |
Idiot.
Lua is the name of a scripting language, names are pronounced and spelled the exact same in every language, mispronouncing them is equal to referring about a completely different name.
I script -~ chimmihc |
|
|
| Report Abuse |
|
|
97neko
|
  |
| Joined: 14 Sep 2014 |
| Total Posts: 16159 |
|
|
| 01 May 2015 02:19 AM |
| lol I was reading over this thread, saw him say LUA and knew everything was downhill from there. |
|
|
| Report Abuse |
|
|
|
| 02 May 2015 05:25 AM |
Er sure whatever. Don't call me an idiot. People make mistakes. Not everyone who makes mistakes is an idiot.
Just help me learn to script. Simple as that.
And that's what this thread is all about. It's to help others start to script especially me.
And don't brag about your scripting skills. If you can script so good, doesn't mean you can call me stupid, dumb, airhead, or an idiot.
And also, saying Lua in a wrong way doesn't mean it can crash the all the scripts I will make (when I learn to script) in the Studio, breaking the software, crashing my PC and will initiate a bluescreen. No, it won't. So relax on what simplest mistakes I made. |
|
|
| Report Abuse |
|
|