Discuss Scratch
- Discussion Forums
- » Things I'm Reading and Playing
- » ROBLOX Lua Official Discussion [1K+ VIEWS]
- Nambaseking01
-
Scratcher
1000+ posts
ROBLOX Lua Official Discussion [1K+ VIEWS]
Hello everyone! 
In this post, we will discuss about ROBLOX Lua programming so others can learn your knowledge about it!
I am not an expert myself, but I like programming on it. I will give out tutorials once in a while, but this is only a discussion so yeah… If you want to know how to create something using Lua, ask it here so someone can reply! I can teach you or if I do not know give you a appropriate YouTube video! 

In this post, we will discuss about ROBLOX Lua programming so others can learn your knowledge about it!
I am not an expert myself, but I like programming on it. I will give out tutorials once in a while, but this is only a discussion so yeah… If you want to know how to create something using Lua, ask it here so someone can reply! I can teach you or if I do not know give you a appropriate YouTube video! 
Last edited by Nambaseking01 (Dec. 11, 2019 17:38:01)
- bybb
-
Scratcher
1000+ posts
ROBLOX Lua Official Discussion [1K+ VIEWS]
I prefer the Love2D framework for making anything in Lua, as it allows you to make things other than just Roblox games. https://love2d.org/
For Roblox, Lua is a pretty good language for what Roblox wants to achieve and it's impressive what some people make. I'm not very good with Lua, and although I've attempted to make stuff on Roblox, it's not any good.
For Roblox, Lua is a pretty good language for what Roblox wants to achieve and it's impressive what some people make. I'm not very good with Lua, and although I've attempted to make stuff on Roblox, it's not any good.
- Nambaseking01
-
Scratcher
1000+ posts
ROBLOX Lua Official Discussion [1K+ VIEWS]
I prefer the Love2D framework for making anything in Lua, as it allows you to make things other than just Roblox games. https://love2d.org/
For Roblox, Lua is a pretty good language for what Roblox wants to achieve and it's impressive what some people make. I'm not very good with Lua, and although I've attempted to make stuff on Roblox, it's not any good.
I checked out Love2D, it is really good for beginners like us. The actual 3D scripting of Lua is a little advanced, but YouTubers like AlvinBlox give really good tutorials on how to use ROBLOX Lua. I learnt a lot from his channel.

I have not seen if the scripts of Love2D work, but if anyone is lazy to check out the website, here you go!
NOTE: I think this only works if you install the LÖVE software at the website.
2D drawing function using LÖVE:
function love.draw() love.graphics.print("Hello World!", 400, 300) end
2D images function using LÖVE:
(you can choose the name of the variable and the document)
function love.load() whale = love.graphics.newImage("whale.png") end function love.draw() love.graphics.draw(whale, 300, 200) end
Sounds using LÖVE:
(you can choose the music yourself)
function love.load() sound = love.audio.newSource("music.ogg", "stream") love.audio.play(sound) end
There you go! Bye!

P.S. Love your siggy!
Last edited by Nambaseking01 (June 11, 2019 18:59:30)
- Nambaseking01
-
Scratcher
1000+ posts
ROBLOX Lua Official Discussion [1K+ VIEWS]
~snip~
LOVE is not related to roblox at all
Well, it has nothing to do with the ROBLOX game but it has a lot to do with the actual Lua scripting.

By the way, did you guys see AlvinBlox's new tutorial on FilteringEnabled? Check it out! https://www.youtube.com/watch?v=wCr5VXJ34T4
Last edited by Nambaseking01 (June 12, 2019 17:29:46)
- wHEresMYm0n3yd4d
-
Scratcher
100+ posts
ROBLOX Lua Official Discussion [1K+ VIEWS]
Doesn't Roblox run in Python? I forgot.
That's what happens if you play Minecraft too much.
That's what happens if you play Minecraft too much.
- ResExsention
-
New Scratcher
1000+ posts
ROBLOX Lua Official Discussion [1K+ VIEWS]
Doesn't Roblox run in Python? I forgot.
That's what happens if you play Minecraft too much.
Minecraft runs on Java.
Roblox runs on Lua.
[DATA EXPUNGED] runs on [DATA EXPUNGED].
I did learn a bit of Lua when I was younger, because the game The Battle For Wesnoth allowed you to create User Made Content partially using Lua.
I transferred that Lua knowledge to Roblox, and made some really nice sliding doors out of it, however I left because of the complexity: I mean, you need five lines of code just to make a kill block?
- CatsUnited
-
Scratcher
1000+ posts
ROBLOX Lua Official Discussion [1K+ VIEWS]
Minecraft Java Edition runs on Java.Doesn't Roblox run in Python? I forgot.
That's what happens if you play Minecraft too much.
Minecraft runs on Java.
Roblox runs on Lua.
…
I transferred that Lua knowledge to Roblox, and made some really nice sliding doors out of it, however I left because of the complexity: I mean, you need five lines of code just to make a kill block?
Minecraft Bedrock Edition (the versions for console, Windows 10 and some mobile platforms) runs on C++
As for Roblox, I never got into Roblox scripting because I felt that it was going to be really complicated (I probably just haven't spent enough time learning about Lua scripting), and the app was pretty unstable on my computer.
Last edited by CatsUnited (June 13, 2019 09:30:37)
- ResExsention
-
New Scratcher
1000+ posts
ROBLOX Lua Official Discussion [1K+ VIEWS]
Doesn't Roblox run in Python? I forgot.
That's what happens if you play Minecraft too much.
Minecraft runs on Java.
Roblox runs on Lua.
…
I transferred that Lua knowledge to Roblox, and made some really nice sliding doors out of it, however I left because of the complexity: I mean, you need five lines of code just to make a kill block?
As for Roblox, I never got into Roblox scripting because I felt that it was going to be really complicated (I probably just haven't spent enough time learning about Lua scripting), and the app was pretty unstable on my computer.
I guess we have something in common. Plus, I also didn't like the limitations of exporting (Roblox only). Honestly, I'd rather make my own game than build on another game.
Does Roblox allow you to import external 3D models like .dae? Up until now, I've been assuming that you had to do all your 3D modeling within Roblox.
What's nice about Roblox, though, is that it gives you a framework to build upon, unlike most other stuff in which you have to build the framework yourself. Useful, but also limiting.
- IgDegOo
-
Scratcher
1000+ posts
ROBLOX Lua Official Discussion [1K+ VIEWS]
Roblox runs on Lua.no its made with c++ lua is just for scripting the game
Does Roblox allow you to import external 3D models like .dae?.yes you can import obj files idk why anyone would use dae
- ResExsention
-
New Scratcher
1000+ posts
ROBLOX Lua Official Discussion [1K+ VIEWS]
Roblox runs on Lua.no its made with c++ lua is just for scripting the gameDoes Roblox allow you to import external 3D models like .dae?.yes you can import obj files idk why anyone would use dae
The reason I like .dae is because it's wide supported. Plus, Collada is a nice name. Also, it's pretty much ingrained in me, I'd find it difficult to swap my default.
I guess your favorite file formats for the same thing is a highly subjective topic.
- IgDegOo
-
Scratcher
1000+ posts
ROBLOX Lua Official Discussion [1K+ VIEWS]
obj is definitely more supported than collada since its existed since the 1980s iirc, collada was made in 2004Roblox runs on Lua.no its made with c++ lua is just for scripting the gameDoes Roblox allow you to import external 3D models like .dae?.yes you can import obj files idk why anyone would use dae
The reason I like .dae is because it's wide supported. Plus, Collada is a nice name. Also, it's pretty much ingrained in me, I'd find it difficult to swap my default.
I guess your favorite file formats for the same thing is a highly subjective topic.
i have >2000 obj files on my computer and <500 dae files
Last edited by IgDegOo (June 13, 2019 14:55:22)
- ResExsention
-
New Scratcher
1000+ posts
ROBLOX Lua Official Discussion [1K+ VIEWS]
obj is definitely more supported than collada since its existed since the 1980s iirc, collada was made in 2004Roblox runs on Lua.no its made with c++ lua is just for scripting the gameDoes Roblox allow you to import external 3D models like .dae?.yes you can import obj files idk why anyone would use dae
The reason I like .dae is because it's wide supported. Plus, Collada is a nice name. Also, it's pretty much ingrained in me, I'd find it difficult to swap my default.
I guess your favorite file formats for the same thing is a highly subjective topic.
i have >2000 obj files on my computer and <500 dae files
Exactly. .dae is more modern, which is one reason you might want to use it. Plus, both are widely supported on most common machines so I don't think it would matter unless you were running one of the more subtle programs.
Anyway, I pretty much can't get .dae out of my head, so I don't think I'll be switching anytime soon.
- Nambaseking01
-
Scratcher
1000+ posts
ROBLOX Lua Official Discussion [1K+ VIEWS]
Doesn't Roblox run in Python? I forgot.
That's what happens if you play Minecraft too much.
I do not know in which programming language ROBLOX runs, but I know the scripting of ROBLOX is Lua.
-snip-
Minecraft runs on Java.
Roblox runs on Lua.
[DATA EXPUNGED] runs on [DATA EXPUNGED].
I did learn a bit of Lua when I was younger, because the game The Battle For Wesnoth allowed you to create User Made Content partially using Lua.
I transferred that Lua knowledge to Roblox, and made some really nice sliding doors out of it, however I left because of the complexity: I mean, you need five lines of code just to make a kill block?
I am not sure whether ROBLOX runs on Lua, because that is just the scripting. Maybe it does, I do not know actually.
I cannot really create a kill brick, but a YouTube tutorial teaches me the script. If you want to know the exact meanings go to the video, link given below.
You have to add a normal script into a kill brick part and then type in this code. I understood the code completely.

script.Parent.Touched:Connect(function(hit) if hit.Parent:FindFirstChild("Humanoid") then hit.Parent.Humanoid.Health = 0 end end)
Well, here is the tutorial: https://www.youtube.com/watch?v=wQ7Gu8-cF3s
-snip-
Minecraft Java Edition runs on Java.
Minecraft Bedrock Edition (the versions for console, Windows 10 and some mobile platforms) runs on C++
As for Roblox, I never got into Roblox scripting because I felt that it was going to be really complicated (I probably just haven't spent enough time learning about Lua scripting), and the app was pretty unstable on my computer.
I think I have the Minecraft Bedrock Edition, because I saw some YouTube gaming videos by the YouTuber Chrisandthemike and the Java Edition seemed way more different.
-snip-
I guess we have something in common. Plus, I also didn't like the limitations of exporting (Roblox only). Honestly, I'd rather make my own game than build on another game.
Does Roblox allow you to import external 3D models like .dae? Up until now, I've been assuming that you had to do all your 3D modeling within Roblox.
What's nice about Roblox, though, is that it gives you a framework to build upon, unlike most other stuff in which you have to build the framework yourself. Useful, but also limiting.
What do you mean by exporting and what is the limit to it? No offense, just asking. What is a .dae file?
-snip-
obj is definitely more supported than collada since its existed since the 1980s iirc, collada was made in 2004
i have >2000 obj files on my computer and <500 dae files
Hello! No offense, but what does .obj and .dae mean? Thanks!

Well, bye! Thanks for posting all this useful info on Lua!

- Nambaseking01
-
Scratcher
1000+ posts
ROBLOX Lua Official Discussion [1K+ VIEWS]
Anyways, I saw some scripts of Unity and I did not understand any of it. For the ones who think Lua is complicating, check out Unity… It seems so hard… D:
If you want proof, look here: https://www.youtube.com/results?search_query=unity+tutorial
If you want proof, look here: https://www.youtube.com/results?search_query=unity+tutorial
Last edited by Nambaseking01 (June 13, 2019 15:15:36)
- ResExsention
-
New Scratcher
1000+ posts
ROBLOX Lua Official Discussion [1K+ VIEWS]
Anyways, I saw some scripts of Unity and I did not understand any of it. For the ones who think Lua is complicating, check out Unity… It seems so hard… D:
If you want proof, look here: https://www.youtube.com/results?search_query=unity+tutorial
Unity is programmed in C#, which is another programming language. I am no good in C#, but here's a sample:
using System; namespace ResExsention { class Res { static void Main() { Console.WriteLine("I am ResExsention, and I just can't code in C#!") } } }
Hello! No offense, but what does .obj and .dae mean?
They are two files types that can store 3D models. Essentially, when you create a 3D model, you can export it as a .dae or .obj or another format.
script.Parent.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild(“Humanoid”) then
hit.Parent.Humanoid.Health = 0
end
end)
Syntax error: Why is there a bracket at the end?
Also, you can use code tags, just use [code=lua] and [/code]
- Nambaseking01
-
Scratcher
1000+ posts
ROBLOX Lua Official Discussion [1K+ VIEWS]
-snip-
Unity is programmed in C#, which is another programming language. I am no good in C#, but here's a sample:using System; namespace ResExsention { class Res { static void Main() { Console.WriteLine("I am ResExsention, and I just can't code in C#!") } } }
Oh, that still looks more complex. What is that script supposed to do, actually? In Python if I have to make an output pop on the screen it is like this:
print("Hi, I am Nambaseking01. I do not have the Python software but I know the little basics. I am a noob.")
Right?
-snip-
They are two files types that can store 3D models. Essentially, when you create a 3D model, you can export it as a .dae or .obj or another format.
Oh okay. And I think you said that .dae is the most advanced? I may be incorrect…

-snip-
Syntax error: Why is there a bracket at the end?
Also, you can use code tags, just use [code=lua] and [/code]
That is not a syntax error. When you end off a function in Lua you need to have a bracket at the end. I am talking from 2 months experience.

Thanks for reading, bye!

- ResExsention
-
New Scratcher
1000+ posts
ROBLOX Lua Official Discussion [1K+ VIEWS]
-snip-
Unity is programmed in C#, which is another programming language. I am no good in C#, but here's a sample:using System; namespace ResExsention { class Res { static void Main() { Console.WriteLine("I am ResExsention, and I just can't code in C#!") } } }
Oh, that still looks more complex. What is that script supposed to do, actually? In Python if I have to make an output pop on the screen it is like this:print("Hi, I am Nambaseking01. I do not have the Python software but I know the little basics. I am a noob.")
Right?
Yes. That is correct.
The C# script I did prints:
I am ResExsention, and I just can't code in C#!
to the console. Yes, it is that complicated, because in C# they throw you into classes straight away. I don't really recommend it for beginners…
-snip-
They are two files types that can store 3D models. Essentially, when you create a 3D model, you can export it as a .dae or .obj or another format.
Oh okay. And I think you said that .dae is the most advanced? I may be incorrect…

No. It's just that .dae is newer. .obj has been around a long time (since the 1990s).
That is not a syntax error. When you end off a function in Lua you need to have a bracket at the end. I am talking from 2 months experience.
Yeet. It's been a while since I did Lua.
- Discussion Forums
- » Things I'm Reading and Playing
-
» ROBLOX Lua Official Discussion [1K+ VIEWS]





