Hello, I’m Den_vers and I have a question. I always have made experiments in Roblox Studio, and am getting better at scripting, but every time I try to make a game, I just rush into it, run into a problem, try to fix it and then give up and move on to another part of the game. I just want to learn how to script thoroughly and properly, and actually make a full, working game.
It’s not because the WAY I script, or that I’m not GOOD at scripting, it’s that… well I guess I’m really not good at scripting and no projects I ever make turn out right. Can I even make a functional game with the knowledge I have? Or am I just rushing into it all? Or does it even matter how you make the game, as long as there are no errors.
I just want a few examples and tips on ways to script like if you wanted to display a GUI on everyone’s screen. You could use a for i, v in pairs()
loop to create a GUI object, and then parent it to each player, or you could already have the GUI inside of StarterGUI, and just set it to gui.Visible = true
. Or another problem, what if you wanted to create an equip-attack system where you had a hot-bar that you could click, obviously you would want a local-script to detect when you click the hot-bar, but how would you handle the attacks? Would you handle it with a server script, or a normal one inside of the client, or some kind of local script that executes the attack on the client, and then fires a remote event to the server to do everything to everyone else. This is the problem I had with my game ChemAttack!. I rushed into it, making all the perks and styles of the game, barely even finishing the actually game in itself. Just trying to make it look good.
Like I said before, it’s not like I don’t know ANYTHING about scripting, I know a thing or two, but I just want and need ideas from others about how to properly script a game. I can’t even fathom the effort it would take to make a game all by yourself, with GUIs, sound effects, and no obvious bugs. And even to actually fix the bugs, it seems like every time I MAKE a method to do anything, it works, but then it only works. It’s not suited to be updated or modified in any kind of way because I would have to change a BUNCH of other things in the game, and it’ll be a mess.
I always see other games, with all of these fancy GUIs and sounds and things, and I feel guilty because I don’t know how to do that, I can’t even script, or even come up with an idea of how to get something like that done.
TL;DR: How can I script more dynamically, and avoid bugs. Are there any common methods, or conventional process to actually developing a game?
Just give some examples?