Heya, I’m le_fishe or known as Realy and today I decided to make this very creatively named module!
This module is targeted at those who’s game work around using accessories to manage their game’s morph/armor needs or anything similar, due to this their study may get messy or their code where they could use 1 module to limit amount of their repetitive code use on the serverside at least.
This is the basic and first documented module I’ve released so I may add or improve it over time just so those who use it can clear up any mess they may have or make their lives easier.
- Insert this module or copy and paste code from github into a module and name it
MorphModuleand place it into
- Make a folder and name it
Morphsand place it into ServerStorage
- Create any sub folders that may be used for teams, players, etc and make sure there’s no repeating names
- Require the module from another server script and run
.new(The morphs folder instance)to give the module the location and the instance of the folder where you’ll be storing all your morphs
- Read the module documentations and enjoy!
Note: This is designed for accessories and not models, if you don’t know how to convert morphs to accessories there are many tutorials on how to do that from where you can use this.
.new(Morph folder name) -- Will set this as the default folder that all morphs are stored in, only needs to be ran once on a server script for the whole game :ApplyFullMorph(Player instance, Folder name, Clothes: true/false, Faces: true/false) -- This applies whole morph to the directed user in the first argument :ApplyMorph(Player, Folder name) -- This only applies the morph but can be considered a faster way of applying as it doesn't check if you want clothes with it or not :RemoveWholeMorph(Player, Morph name aka the folder name) -- Removes the whole of the morph including the clothes with it without touching anything else that doesn't exist in the original folder :RemoveMorph(Player, Morph name aka the folder name) -- Removes only the morph without the clothes without touching any other accessories that aren't named the same at least Keep in mind that you need to create a folder inside ServerStorage named `Morphs` and from there you can split morphs into team folders or individual folders than the script will find itself unless there are duplicate instances of those *Make sure that all of the morphs are unanchored or your character will get stuck in place!!* You can as well insert any shirts or pants inside the folder you want to be applied and they can be named anything you want.
- Add feature which saves your original character and It’s accessories which you can morph back to including one with a clothes function.
You can contact me on the forum if you have any questions,
Feedback of any sort is always appreciated, positive, negative!
You can get the model or the code from my github or from the published model!
Thanks for reading