Setting up the backend
As when creating the Obby, the backend of the game should be created to be modular. Similar to before, we will be creating a main server-sided script called ServerHandler
, which all server modules will be under. So, you do not need to refer back to the previous chapter, as the code that should be in the ServerHandler
script is included here:
for _, module in pairs(script:GetChildren()) do     local loadMod = coroutine.create(function()         require(module)     end)     coroutine.resume(loadMod) end
Moving forward, we will be introducing the modules that should be added to the ServerHandler
script to create the main functionalities of the game. As with the previous chapter, you are encouraged to test each system you make, assuming the said system is not dependent on one you haven't yet made. Testing throughout the development process not only ensures...