|
| 07 Oct 2011 08:56 AM |
I know, I know. Now before you start saying 'Learning Lua is really easy, get a teacher' I'd just like some advice from you guys instead. I have NO CLUE how to write in Lua so I can't write a script. Would this be speaking Lua correctly?
Workspace.GetChildren.increase.strength.(50) wait(1).Mesh.Sphere.if.RightArm.Clone
end
if not, tell me how to improve and if I did it right tell me.
Thanks!
|
|
|
| Report Abuse |
|
|
sdfgw
|
  |
 |
| Joined: 08 Jan 2009 |
| Total Posts: 41681 |
|
|
| 07 Oct 2011 08:59 AM |
| That's not even close. You need a statement for every action to do, and a condition for every "if" you write. If you want to do something to every child, you need to grab a table, and iterate through it with a loop. |
|
|
| Report Abuse |
|
|
|
| 07 Oct 2011 09:03 AM |
WHOA WHOA WHOA.
I'm not 12, I'm 9 and I have NO CLUE WHAT YOU'RE TALKING ABOUT.
So, before you launch into advanced math, speak so I can understand what you mean, because your last sentence is like a forigen lanuage to me.
Seriously. Could we try that again?
*cough*nomathtalkplease*cough* |
|
|
| Report Abuse |
|
|
sdfgw
|
  |
 |
| Joined: 08 Jan 2009 |
| Total Posts: 41681 |
|
|
| 07 Oct 2011 09:04 AM |
| Here's a better idea. Before YOU launch yourself into intermediate scripting, you get the basics down. Check out an Absolute Beginner tutorial off the wiki. |
|
|
| Report Abuse |
|
|
|
| 07 Oct 2011 09:07 AM |
Kay then. :3
But it looks hard :P |
|
|
| Report Abuse |
|
|
sdfgw
|
  |
 |
| Joined: 08 Jan 2009 |
| Total Posts: 41681 |
|
|
| 07 Oct 2011 09:14 AM |
| It's all logic, really. Like learning another language, except more culture shock and less similarities to anything you're used to. |
|
|
| Report Abuse |
|
|
ZizZazZuz
|
  |
| Joined: 16 Jun 2008 |
| Total Posts: 2743 |
|
|
| 07 Oct 2011 09:26 AM |
That's so far off I don't know how to start.
p = Workspace:GetChildren() --GetChildren() is a method, hence the :.
for i = 1, #p do --Do once for every child. if p[i].Name == "NameOfModelHere" then --If it's the one you want then --stuff here. Clone is a method. end end --Ends needed for conditionals and for tables.
Overall... Start at the beginning.
game.Workspace.Part:Clone() --Try this to start. |
|
|
| Report Abuse |
|
|
Combrad
|
  |
| Joined: 18 Jul 2009 |
| Total Posts: 11025 |
|
|
| 07 Oct 2011 09:30 AM |
| Tell me what the script SHOULD do, then I can show you the correction version. |
|
|
| Report Abuse |
|
|
|
| 07 Oct 2011 02:37 PM |
| It's supposed to 'increase strength' to make little biceps appear on their right arm. |
|
|
| Report Abuse |
|
|
sdfgw
|
  |
 |
| Joined: 08 Jan 2009 |
| Total Posts: 41681 |
|
|
| 07 Oct 2011 02:39 PM |
| unfortunately, Lua is not an artificial intelligence with an advanced grasp of the English language. You have to make do with changing the properties of certain objects, and the use of a limited number of actions called methods. |
|
|
| Report Abuse |
|
|
|
| 07 Oct 2011 02:44 PM |
wiki.roblox.com/index.php/User:Crazypotato4/Test
if you want to know those fancy words that sdfgw was using in that first post |
|
|
| Report Abuse |
|
|
|
| 07 Oct 2011 03:35 PM |
@crazypotato thats a nice guide you got there. I actually learned you can have a table in a table (so long as i read your string section correctly) |
|
|
| Report Abuse |
|
|
nate890
|
  |
| Joined: 22 Nov 2008 |
| Total Posts: 21686 |
|
| |
|
|
| 07 Oct 2011 06:24 PM |
| I learned $%HTML when I was your age. |
|
|
| Report Abuse |
|
|
|
| 07 Oct 2011 06:32 PM |
| html isnt even a programming language |
|
|
| Report Abuse |
|
|
nate890
|
  |
| Joined: 22 Nov 2008 |
| Total Posts: 21686 |
|
| |
|
|
| 07 Oct 2011 06:44 PM |
| He's right, but its as close as you can get. HyperText Makeup/Markup Language or something like that. |
|
|
| Report Abuse |
|
|
|
| 07 Oct 2011 06:46 PM |
HTML is a MARK UP LANGUAGE.
Hence the acronym..
Hyper Text Mark-Up Language |
|
|
| Report Abuse |
|
|
|
| 07 Oct 2011 06:49 PM |
| markup language is not at all close to a programming language. |
|
|
| Report Abuse |
|
|
nate890
|
  |
| Joined: 22 Nov 2008 |
| Total Posts: 21686 |
|
|
| 07 Oct 2011 06:50 PM |
Calling HTML a programming language is like calling bbcode a programming language
<'+1 Post. Ujelly?'> |
|
|
| Report Abuse |
|
|
| |
|