Hi! I’m currently experimenting with module scripts and OOP, but I don’t quite understand certain aspects.
I’m interested in creating a fighting game with abilities and during my researches I found this thread:
I read the code in the file attached in the answer I linked, but I didn’t quite get how it works.
For example, in ServerScriptService there a script with just one line:
require(script.Parent:WaitForChild("Magic"))
But what’s its purpose exactly? If someone could break down the logic behind this method and explain it in simple\more practical terms I’d really appreciate it.
Also, let’s say I wanted to let player select one magic type when they spawn and once selected, a GUI with the buttons binded to the abitilies appear, which are also keybinded to a keyboard key. How should I apply that method including UserInputService?
Thanks in advance to any person willing to help! And no, I’m not asking for someone to script it for me, but rather explain how I should approach it logic-wise. Pseudo-code also works!
EDIT: if the original poster, @DrKittyWaffles, could help it would be amazing