Welcome To Robloxia - Learn To Code

Still do, makes it harder to read. You should be making ur code cleaner as you’re showing it to beginners so it should be clean

Will do!

POSTLIMITPOSTLIMITPOSTLIMIT

Don’t forget to mention Roblox allows 200 locals per script its a fact not-known by many programmers

just in case you exceed the limit by not using modules or tables …etc

2 Likes

I will add that now, thanks for reminding me!

An easy workaround is tables.

local variabletable = {
Apple = true,
coolModule = require(urmodule)
}

print(variabletable.Apple)
variabletable.coolModule.dosomething()
2 Likes

I will be including tables later on in the tutorial, that is why I only mentioned modules in how to bypass, and yes tables are an easy workarround, also keep in mind I will be mentioning with the ModuleScripts that _G is bad practise once your understand module scripts

2 Likes

There are much better resources Hour 11. Lua Overview - Roblox Game Development in 24 Hours: The Official Roblox Guide [Book]

I know, I thought might aswell make a tutorial just in case, like me, they made no sense except the only thing they taught me is how to type hello world claps

They think that to make a game like adopt me you just have to type this

while true do
print('Hello World!')
end

And so I created a tutorial for the basic luau!

Nice job with the loops and ifs elseifs.

1 Like

Thank you so much, I will be adding more soon :slight_smile:

1 Like

Nice work on the tables tutorial!

Adding Dictionary soon! :slight_smile: :slight_smile: :slight_smile:

1 Like

Global variables are bad practice and usually eat away some of your game’s performance. Module scripts are more effective.

1 Like

I already commented on this, I will be adding more!

Thanks for suggesting though!

1 Like

StarterGui*

Also amazing tutorial! 10/10

Thanks, when not coding I always say UI instead of GUI, thanks for feedback.

UI = User Interface

GUI = Graphical User Interface

1 Like

I think we all get confused with UI and GUI, haha. UI is User Interface and GUI is Game User Interface. GUI is used in all games, Roblox, COD, Minecraft etc.

Ah, yes I mess up with graphical and game, my bad :sweat_smile:

I think its graphical user interface not game but might be wrong

2 Likes

image