SubSurge
|
  |
| Joined: 31 Aug 2011 |
| Total Posts: 462 |
|
|
| 19 Jan 2016 09:45 PM |
| I'm trying to learn but after a month of watching youtube videos, playing codecombat. Reading this forum. The only thing I understand is printing. |
|
|
| Report Abuse |
|
|
|
| 19 Jan 2016 09:48 PM |
A year to do it self-sufficiently. That was by dissecting others' code and piecing it back together again. I'm not sure how I used to be so good at things like that. I surely lost that talent long ago. I mean, I used to be able to calculate decimals in my head, but now I can't even square things properly. What have they put in the food this time? |
|
|
| Report Abuse |
|
|
|
| 19 Jan 2016 10:33 PM |
It doesn't take too long to learn how to script. For me, 1- 3 Hours to learn basics of lua. Then I expanded my knowledge every once and a while.
--[ Insert Signature here ]-- |
|
|
| Report Abuse |
|
|
|
| 19 Jan 2016 10:35 PM |
oh and another thing, Don't watch videos on youtube, its useless. for me atleast. Anyways, your brain can collect more data when you read, visually learning may be a bit complex, and can be time consuming.
|
|
|
| Report Abuse |
|
|
|
| 19 Jan 2016 10:48 PM |
| I started using ROBLOX University (i'm one of the few people who actually began scripting using those yt vids) and then moved on to the wiki. |
|
|
| Report Abuse |
|
|
zappata1
|
  |
| Joined: 26 Mar 2012 |
| Total Posts: 1073 |
|
|
| 19 Jan 2016 10:50 PM |
| I "tried" learning 2 yrs ago and umm I failed I spent about a year trying to learn but like I would takes breaks from roblox I am a average scripter but wanting to get back at it c; |
|
|
| Report Abuse |
|
|
|
| 19 Jan 2016 11:00 PM |
| Dude, IT TOOK YOU A YEAR? Just learn the basics from Roblox Wiki then make a game. Trust me, it helps... |
|
|
| Report Abuse |
|
|
|
| 19 Jan 2016 11:01 PM |
| @raul how much of Lua do you know? |
|
|
| Report Abuse |
|
|
|
| 19 Jan 2016 11:02 PM |
@RaulChaser I learned a ton in a few youtube videos after learning nothing reading the wiki for a few weeks.
Not everyone's brain absorbs more from reading. |
|
|
| Report Abuse |
|
|
|
| 19 Jan 2016 11:04 PM |
I agree, youtube videos (in my opinion) were a lot better than the wiki when starting off.
#Code print("Song Link: http://www.roblox.com/Deorro-vs-Swedish-House-Mafia-Save-The-5-Hours-item?id=340827217") |
|
|
| Report Abuse |
|
|
|
| 19 Jan 2016 11:04 PM |
| @128, yeah I guess your correct. Some people absorb knowledge from different sources. The reason why I cant learn from youtube is because, your learning from another persons method, wich many people don't think the same way. |
|
|
| Report Abuse |
|
|
|
| 19 Jan 2016 11:05 PM |
@longkillcreations, I know what I need to know to script. |
|
|
| Report Abuse |
|
|
|
| 19 Jan 2016 11:05 PM |
The wiki is not that good of a source for learning Lua, if you ask me. But great for ROBLOX resources.
I personally find youtube videos awful, especially because my hearing is kinda bad so I often spend a lot of time rewinding. |
|
|
| Report Abuse |
|
|
|
| 19 Jan 2016 11:06 PM |
"Dude, IT TOOK YOU A YEAR? Just learn the basics from Roblox Wiki then make a game. Trust me, it helps..."
Is that a long time? I've been learning for about a year too. |
|
|
| Report Abuse |
|
|
|
| 19 Jan 2016 11:06 PM |
I was talking about roblox Lua I don't know the actual LUA, only C++ |
|
|
| Report Abuse |
|
|
|
| 19 Jan 2016 11:07 PM |
I guess youtube videos depend on the clarity of the person talking.
#Code print("Song Link: http://www.roblox.com/Deorro-vs-Swedish-House-Mafia-Save-The-5-Hours-item?id=340827217") |
|
|
| Report Abuse |
|
|
|
| 19 Jan 2016 11:08 PM |
"I was talking about roblox Lua I don't know the actual LUA, only C++"
You apparently don't know what Lua is |
|
|
| Report Abuse |
|
|
|
| 19 Jan 2016 11:09 PM |
"I guess youtube videos depend on the clarity of the person talking."
Meh. Even the "good ones" that people sent me, I found awful.
|
|
|
| Report Abuse |
|
|
|
| 19 Jan 2016 11:11 PM |
| @Longkill, If this is going to turn into chaos, I will speak no further... anyways, lua is moon. blah blah, lua is also a coding language, etc. Anyways, you are correct about the "good ones" still being awful. Not saying I hate them, just... nvm. |
|
|
| Report Abuse |
|
|
litalela
|
  |
| Joined: 30 Mar 2010 |
| Total Posts: 6267 |
|
|
| 19 Jan 2016 11:14 PM |
i learn more every day
➳Lɪᴛᴀʟᴇʟᴀ ɪs ᴍʏ ɴᴀᴍᴇ, Lᴜᴀ ɪs ᴍʏ ɢᴀᴍᴇツ |
|
|
| Report Abuse |
|
|
|
| 19 Jan 2016 11:15 PM |
If you know roblox lua well, you know regular lua.
This is some code I keep on a lua compiler to balance my bank account.
(I replaced all my information with fake example information for obvious reasons)
local history = { [2015] = { december = {
["24-12:34PM"] = {"Paycheck: [Place I work]"; 128.00;};
["25-1:37PM"] = {"Gas"; -25.01;};
}; }; --[[2015 end]]
[2016] = { january = {
}; february = {
}; march = {
}; april = {
}; may = {
}; june = {
}; july = {
}; august = {
}; september = {
}; october = {
}; november = {
}; december = {
}; }; --[[2016 end]] }
local cache = { balance = nil; savings = nil; extra = nil; paycheck = nil; }
calculate = { balance = function() if (cache.balance == nil) then cache.balance = 0 for _, year in next, history do for _, month in next, year do for _, day in next, month do cache.balance = (cache.balance + day[2]) end end end end return cache.balance; end;
savings = function() return (calculate.paycheck() / 2); end;
extra = function() return (calculate.balance() - calculate.savings()); end;
paycheck = function() if (cache.paycheck == nil) then cache.paycheck = 0 for _, year in next, history do for _, month in next, year do for _, day in next, month do if (day[1]:find("Paycheck: ")) then cache.paycheck = (cache.paycheck + day[2]) end end end end end return cache.paycheck; end;
all = function() return ("\nBalance; " .. calculate.balance() .. "\nSavings; " .. calculate.savings() .. "\nExtra; " .. calculate.extra() .. "\nPaycheck; " .. calculate.paycheck()); end;
}
print("Balance; current expected balance") print("Savings; amount you leave in the bank") print("Extra; amount you can spend") print("Paycheck; amount you have been paid total") print("All; print all") print(("_"):rep(42))
while true do local input = io.read():lower() if (calculate[input]) then print(input:sub(1, 1):upper() .. input:sub(2) .. "; " .. calculate[input]()) else print("Invalid") end end |
|
|
| Report Abuse |
|
|
|
| 19 Jan 2016 11:15 PM |
I think perhaps you are a little confused - "ROBLOX Lua" is just Lua 5.1 embedded into ROBLOX, with some roblox-specific functions and API added, with a few functions here and there that you'd normally find in Lua 5.1 removed.
|
|
|
| Report Abuse |
|
|
|
| 19 Jan 2016 11:17 PM |
So technically it can be considered 'Roblox lua' and not just 'lua'. If it were given modifications, its not pure, Lua 5.1
- That was hard to read |
|
|
| Report Abuse |
|
|
DrHaximus
|
  |
| Joined: 22 Nov 2011 |
| Total Posts: 8410 |
|
|
| 19 Jan 2016 11:20 PM |
@raul
not at all it functions exactly the same as normal lua
lua == "roblox lua" |
|
|
| Report Abuse |
|
|
Aethex
|
  |
| Joined: 16 Oct 2011 |
| Total Posts: 2193 |
|
|
| 19 Jan 2016 11:34 PM |
technically, learning to print is still learning so you can say you "learned lua"
learning is a process that never stops currently, roblox is still updating features and adding new methods to its library making it impossible to completely "learn" the language |
|
|
| Report Abuse |
|
|