Scripting is my honest passion, but I do not have much knowledge on it, how do I learn it? I truly dream of making a well-scripted game, I would be satisfied with making only an automatic minigame on my own, but I am entirely just a beginner, any tips?
I took coding lessons in Lua.
Simple things to know about Lua Functions are:
print("Hello world") if WorldTime = true then print("help me") end function WorldTime --code for world time goes here end
Those are some basic functions to know about Lua.
Well, Gio, as an actual Roblox friend of yours, I'm acquainted with what your goals are currently. I know that you're aware of many of the basics, such as if statements and variables, but there is much more in stock.
Learning Lua is like a curve. It's tough at first, but gets exponentially easier. As you're trying to make an automatic minigame, you're going to need to rely on GUIs & client-server scripting...a lot. For such a goal, it's best if you try to delve into RemoteEvents
and/or RemoteFunctions
, which help the client and the server transfer info, which can happen frequently in round-based games. Looking into BindableEvents
is also a useful thing to learn, when you need to transfer information over form one script to another, or to start something up.
Additionally, you can always look up for any queries you have along your way on Google, by typing in something like, "how do i do this blahblahblah thing roblox". Generally, DevForum posts, DevHub Articles/API and even other ScriptingHelpers questions can provide some more insight. Also, my general advice is if you're trying to do something specific, look for some tutorials, but read the comments and be cautious if code shown is deprecated (AKA old & possibly not used anymore). Then, if you're looking for things more specific, you can check back at the articles and posts!
What's also good to note is that Roblox, as of 2018, meets the game industry standards of "FilteringEnabled". Here, this prevents a change of code on a client (in a LocalScript usually) to replicate to everyone else. This is meant to beef up protection against hackers a bit, but doesn't go all the way, & it requires you to be able to know how to script in FilteringEnabled.
Lastly, as someone who is working on a round-based game, I can tell you a few more specifics of the parts needed.
-Make sure you know how to check player counts, or check the players, either with #game.Players:GetPlayers()
, or a for i, v in pairs
loop withgame.Players:GetPlayers()
-The Output is your friend, you can always see if anything goes wrong (or right) in there, and you can not only see it in Studio, but in-game, by typing /console.
-Make sure you have an idea and theme in mind. If your builds look very complex, but your GUIs and its effects are simple, it can give a weird vibe to players.
Possible Places to Look At! DevForums Posts (With caution on the dates) DevHub Articles/API YouTube (with more caution) and...ScriptingHelpers Questions! (Also with caution on the date)
Hopefully, you get some luck with your minigame and endeavors, Gio!
For me, YouTube was like the ultimate guide for scripting. AlvinBlox was my first option for scripting. I've learned a lot from him. You can also refer to the Roblox Developer Hub more information (But less understanding...). The Roblox Blog also houses lots of Roblox scripters willing to help people like you.