ESman1998
|
  |
| Joined: 17 Nov 2012 |
| Total Posts: 20 |
|
|
| 07 Jan 2016 08:55 PM |
I noticed that this was avaliable to read online. Before I start trying to figure out how to do all this coding and scripting and stuff, I had a question. I don't have any background in scripting, and have only taken a few lessons on it. I don't really understand what order to put anything in, or what keywords to use. How much background knowledge would I need to get started?
(Link in case someone doesn't know what page I'm talking about) http://www.lua(dot)org/pil/contents.html i dont know if links are allowed in roblox forums ;-; |
|
|
| Report Abuse |
|
|
|
| 07 Jan 2016 09:01 PM |
I believe Lua would be a good first language. It's a BASIC language as well, which is easier for beginners. |
|
|
| Report Abuse |
|
|
ESman1998
|
  |
| Joined: 17 Nov 2012 |
| Total Posts: 20 |
|
|
| 07 Jan 2016 09:30 PM |
| Okay, thanks. I've been building a map for a while, but I can't make it a full, no models game without scripting- or, at least it could certainly become much better. |
|
|
| Report Abuse |
|
|
Link5659
|
  |
| Joined: 04 Jun 2012 |
| Total Posts: 4525 |
|
|
| 07 Jan 2016 09:33 PM |
function noobALERT() game.Players:GetChildren():kick() end
while wait() do noobALERT() end |
|
|
| Report Abuse |
|
|
|
| 07 Jan 2016 09:35 PM |
@link you just rekt yourself
"game.Players:GetChildren():kick()" Lmao.
http://www.roblox.com/Deorro-vs-Swedish-House-Mafia-Save-The-5-Hours-item?id=340827217 |
|
|
| Report Abuse |
|
|
Link5659
|
  |
| Joined: 04 Jun 2012 |
| Total Posts: 4525 |
|
|
| 07 Jan 2016 09:35 PM |
| 1. Did a function cuz i can 2. I know it wont work without child added due to the script dieing after it running and not finding the player due to the player joining etc... but im lazy |
|
|
| Report Abuse |
|
|
Link5659
|
  |
| Joined: 04 Jun 2012 |
| Total Posts: 4525 |
|
|
| 07 Jan 2016 09:36 PM |
@advanced hey it works, also lel.
while true do end |
|
|
| Report Abuse |
|
|
Link5659
|
  |
| Joined: 04 Jun 2012 |
| Total Posts: 4525 |
|
|
| 07 Jan 2016 09:38 PM |
| and yes im aware it doesnt work normally but my studio will literally do almost anything work or not its broken for some reason |
|
|
| Report Abuse |
|
|
ESman1998
|
  |
| Joined: 17 Nov 2012 |
| Total Posts: 20 |
|
|
| 07 Jan 2016 09:59 PM |
| I am a noob to this, if thats what you're referring to. That's why I'm asking, and if it's not then I said nothing Kappa |
|
|
| Report Abuse |
|
|
ESman1998
|
  |
| Joined: 17 Nov 2012 |
| Total Posts: 20 |
|
|
| 08 Jan 2016 02:58 AM |
| Also, is there any trick or way of keeping track of all of the vocabulary for scripting, and the order to put commands in? Help a noob. |
|
|
| Report Abuse |
|
|
WoolHat
|
  |
| Joined: 19 May 2013 |
| Total Posts: 1873 |
|
|
| 08 Jan 2016 04:30 AM |
| You have to memorize them for the mostpart. That comes with practice and research (if you ever have a question on one of the methods or events or whatever, use the roblox wiki, if that doesn't help, search the roblox scripture forum with a keyword) |
|
|
| Report Abuse |
|
|
|
| 08 Jan 2016 06:24 AM |
Learning RBLX.Lua is actually quite easy. After reading/watching the tutorials, you should ALWAYS do what you learned. Everytime you learn something new, make something new using it. Repetition makes you remember lots of things, but of course, we're also humans and we might forget some things, that's why we can always look back in the wiki. http://wiki.roblox.com/index.php?title=Your_First_Script One of my old sources. (Absolute Beginner's Guide to Scripting got deleted :*c) Friaza Hyuga is actually quite good at teaching Mango Miner teaches well Peaspod is great too
Lol, there are tons of sources I can't remember. GL in scripting |
|
|
| Report Abuse |
|
|
ESman1998
|
  |
| Joined: 17 Nov 2012 |
| Total Posts: 20 |
|
|
| 08 Jan 2016 03:45 PM |
| thank you! I finished up the 'hour of code' beginner lessons on youtube, and currently im watching peasfactory (which i think is peaspod) to figure out some actual game elements. :) |
|
|
| Report Abuse |
|
|
Eauz
|
  |
| Joined: 23 Jul 2013 |
| Total Posts: 2942 |
|
|
| 08 Jan 2016 03:57 PM |
Lua is really (from experience) one the easiest languages to start with. Maybe Python is too but it can get complicated compared to LUA. After you learn enough (Use it for 6 - 15 months) go straight for C# then expand to C++/C and Java.
|
|
|
| Report Abuse |
|
|
lordrambo
|
  |
| Joined: 16 Jun 2009 |
| Total Posts: 20628 |
|
| |
|
|
| 08 Jan 2016 03:59 PM |
I like how Link just tried to lie his way out.
No real scripter would make the mistake GetChildren():Kick(), one because it won't work (you lied about that too) and the fact that GetChildren is deprecated in the case of Players; use GetPlayers. |
|
|
| Report Abuse |
|
|
|
| 08 Jan 2016 09:31 PM |
different between GetChildren and GetPlayers
|
|
|
| Report Abuse |
|
|
|
| 08 Jan 2016 09:48 PM |
| GetChildren() gets all children, and GetPlayers() gets all players. Quite simple. |
|
|
| Report Abuse |
|
|
lupine
|
  |
| Joined: 24 Jun 2008 |
| Total Posts: 3561 |
|
|
| 08 Jan 2016 10:34 PM |
"I believe Lua would be a good first language. It's a BASIC language as well, which is easier for beginners."
Also it's a higher level language, meaning you don't have to deal with all that data management crap that comes along with lower level languages, like C and assembly.
being able to do local tab = {}
and populating it with as many elements you want is a lot cooler than
void tab[5] = {"a", "b", "c", "d", "e"}
|
|
|
| Report Abuse |
|
|
|
| 08 Jan 2016 10:39 PM |
So GetPlayers get's all the players ingame and GetChildren gets a thing called Children which you did not elaborate on. |
|
|
| Report Abuse |
|
|
lupine
|
  |
| Joined: 24 Jun 2008 |
| Total Posts: 3561 |
|
|
| 08 Jan 2016 10:45 PM |
obj:GetChildren() returns a table of all direct descendants of 'obj'. obj:GetPlayers() returns a table of all direct descendants of 'obj', so long as 'obj' is game.Players and the direct descendant is a Player. |
|
|
| Report Abuse |
|
|
| |
|
lupine
|
  |
| Joined: 24 Jun 2008 |
| Total Posts: 3561 |
|
|
| 08 Jan 2016 11:07 PM |
GetPlayers will only ever be called on game.Players. It's a more accurate way of getting all the Players in the game because even if there is a non-player object in game.Players, it won't return it.
- game.Players -- Lupine -- anthonycotto -- "Model"
Lets say Model isn't a Player
for _,v in pairs(game.GetPlayers()) do print(v.Name) end --> Lupine anthonycotto
All GetPlayers is is a more specific way of doing 'GetChildren'. If you're trying to get all the players in the game, use GetPlayers, not GetChildren |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 08 Jan 2016 11:11 PM |
Although realistically if you put anything in game.Players then you're dumb. Also there is game.Teams:GetTeams() too, it's the "right tool for the job" pretty much. |
|
|
| Report Abuse |
|
|
|
| 08 Jan 2016 11:12 PM |
"like C and assembly."
it's kind of deceiving to compare C and assembly in terms of abstraction, they're hugely different |
|
|
| Report Abuse |
|
|