Welcome To Robloxia - Learn To Code

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

GUI is a UI, since its a user interface so both can be used! Saying GUI just makes it more specific.

1 Like

Yeah, you pretty much explained my thing. But again, I’m looking forward to seeing a lot of beginners learning from your tutorial!

1 Like

Thanks so much, I’ll continue to add stuff to this project including modules!

2 Likes

Nice job dude keep it up. (character limit)