This is my firstest tutorial, im no good teacher but i want to really post this
Before reading the tutorial, you need to know the following:
Bindableevents,
Modulescripts
if you dont know the following, the tutorial will be confusing, i recommend learn them first
NOTE : ill use images to screenshot codes bc i dont want copy and pasters, i want you to understand
how to make it step by step
this tutorial will teach you how to make a service like this
whats even better : you dont need to require() the service in every script
so the required elements are:
2 Scripts (one which is the loader of the service, one normal)
1 ModuleScript (the service)
Organization (you can organize it as you like):
so before we get in the loaders and stuff, lets start with the module script
the fresh module script should look like this:
okay, keep that local module and return module thing, to make the module script
work, but it will be a useless part
STEP 1
creating the service
so obviously you would put all functions in the modulescript, but if you dont want to require it in all scripts this is a better way:
now you wanna setup the events , uknow, like this
sadly, you cant do that unless you do
so you would need bindable events, this is what you will do
okay! step 1 is complete
STEP 2
The loader of the service
i mean its pretty easy, you just
require(pathtomodule) -- loads the service
yeah, so easy
Last Step
How to use the service on normal scripts
congrats, you are on the last step
so you wanna use the service in a script, you can simply do this
Note : its a good idea to use :WaitForChild() because the service wont load directly.
now you wanna make the service do something, easy pz
Done! you completed the tutorial, now you can make custom services!
now look at the cool result!
the baseplate dissapeared, nice service