|
| 22 May 2016 10:39 PM |
| I want to learn how to to make my own scripts like weapons or others things. I hope somebody can teach me. |
|
|
| Report Abuse |
|
|
|
| 22 May 2016 10:41 PM |
| Just a tip: Lua sucks. Don't think it'll be usefully anywhere outside of Roblox. But as long as you don't mind that, you'll be fine. Plus it makes it 1000% easier to learn Python, which is actually very useful. |
|
|
| Report Abuse |
|
|
|
| 22 May 2016 11:55 PM |
| I don't mind that it's only good for Roblox. I just want to learn how to script. |
|
|
| Report Abuse |
|
|
|
| 23 May 2016 12:20 AM |
| I can teach some things that are very basic, but yes Phoenix is right Lua scripting sucks. So scripting will be a lot easier if you know some of the words or phrases that are commonly used. For example: while true do, local, false, true, else, do, functions, etc. equals signs and bracets are also used pretty much all the time when people script And when people script a sentence they put periods in between the words so it will look something like this: script = game.Player.PlayerAdded:connect(function(player). When writing a script, you have to be very specific and even just 1 letter that is not capatilized will ruin the entire script. I suggest looking at scripting tutorials on YouTube to find more about scripting. But note that scripting is not something that is easy and will take years of practice to learn the context and variables that are used. |
|
|
| Report Abuse |
|
|
chimmihc
|
  |
| Joined: 01 Sep 2014 |
| Total Posts: 17143 |
|
|
| 23 May 2016 12:23 AM |
You can use Lua to do ANYTHING you can do with python, except with better performance and portability.
|
|
|
| Report Abuse |
|
|
|
| 23 May 2016 12:35 AM |
| Yeah but nobody outside of roblox really uses Lua, and even if did they would use Python instead because it's better |
|
|
| Report Abuse |
|
|
chimmihc
|
  |
| Joined: 01 Sep 2014 |
| Total Posts: 17143 |
|
|
| 23 May 2016 12:54 AM |
"Yeah but nobody outside of roblox really uses Lua, and even if did they would use Python instead because it's better"
Oh, the ignorance.
1. Lua is one of most, if not the most, used language for game scripting in the world. 2. Lua is gaining a foothold as a web-server language, it does a better job at it than Python, JavaScript, PHP, etc. 3. Please explain how Python is better than Lua, is it because Python doesn't have anonymous functions, is less portable, is slower, is very difficult to embed in a host application?
|
|
|
| Report Abuse |
|
|
membra
|
  |
| Joined: 14 Oct 2008 |
| Total Posts: 6313 |
|
|
| 23 May 2016 02:05 AM |
Lua is the most useful language ever. Literally every game uses it for modding and stuff; The Binding of Isaac, Factorio, Dota 2, tons others. There's also tons of game engines that use Lua; Cocos, Corona, LOVE, etc. Although Lua may not be the most versatile, efficient or robust language in the world, calling it sucky is just misinformed.
Also, Copper, are you seriously saying that a language is sucky because it has syntax and structure? Similar rules apply to literally every programming language ever. Misplacing a capital letter or whatever doesn't really matter because we have the output window, so long as you script is readable, you should be able to quickly figure out any syntax errors and stuff like that.
|
|
|
| Report Abuse |
|
|