This is a module script that makes some common tasks, or tedious ones, easier than before.
This is not intended to be used as a learning tool for coding, and nor do I claim to be an expert in coding. So.. take the quality and readability of this module with a little grain of salt.
Usage
Simply use require(3165359492) or insert the module manually to use it (but don’t forget that requiring a ModuleScript via an ID doesn’t work in LocalScripts).
For the sake of the examples in the functions list below, let’s assume Code is the variable used:
local Code = require(3165359492)
Module Link: https://www.roblox.com/library/3165359492/redirect
Documentation: GitHub Page
If there is any misinformation within the documentation or you believe that something needs more clarification, please let me know.
Also, feel free to comment if you have ideas for any new functions that I should add that you believe would be useful.
LATEST UPDATES:
July 20th, 2022
• Renamed to better reflect what this is.
• Minor adjustments that shouldn’t impact much.
August 17th, 2022
• Minor type-checking adjustments.
• Minor changes to existing functions that loop through tables multiple times.
• Added function Fetch which allows you to fetch multiple variables from instances or tables.
September 21st, 2022
• Fixed a problem with WaitForChildren where it could return nil
values, thus offsetting multiple values when using the asterisk special input.
• WaitForPath will now return false values instead of nil
to not offset values when using the asterisk special input.
September 23rd, 2022
• Function GetAttributes now includes a variable that allows you to auto-create attributes if the requested ones cannot be found, or not. Previously inserting a table value would automatically do this, now that is toggleable.
• A lot of type-checking adjustments.
• Change and Clone now accept attributes as possible inputs.
• Functions that have the Same special input can place more than one if they are enumerated.
• FindAllChildren now has access to the asterisk input for pathing like WaitForChildren.
• Removal of the Time function.
• Minor bug fixes.
• Minor adjustments to documentation to include previously missing information.
January 9th, 2023
• Addition of the Replace function. This replaces an instance in place for either creating a new instance or cloning another one.
• Addition of the Formulas variable. This is a table that holds a few semi-common formulas in function form.
• Moved the documentation to an off-site source due to hitting the 50K text limit. Whoops.
June 19th, 2023
• Removal of the function Require and the variable Mods.
• Addition of the formula TimeConvert. This formula takes any number of seconds and converts that to another unit of time.
• Addition of the function TimeTable. This function takes any number of seconds and returns a dictionary of all possible conversions from the formula TimeConvert.
• Addition of the function TimeFormat. This function takes any number of seconds and converts that to a time format of your choosing.
June 26th, 2023
• Addition of the function GetInstance. This function searches for an Instance or creates a new one if it doesn’t yet exist.
July 1st, 2023
• Slight change of function GetInstance. The 4th variable input acts differently and has three valid inputs.
July 3rd, 2023
• Made significant alterations to all of the Tween-related functions. The use format is different than before.
• Made a similar alteration to the Plugin_Widget function.
• Minor type-checking adjustments to the module all-around.
• Addition of the function WeldTo. This function automatically welds (via WeldConstraints) a lot of parts to a singular part.
July 6th, 2023
Primarily just some type-checking adjustments.
July 18th, 2023
• Module’s Warn and Error handlers should be a tad bit more clear.
• Function WeldTo slight adjustment to second input variable; can now also be set to true.
July 30th, 2023
Inclusion of 2 new formulas: CFrameToOrientation and OrientationToCFrame. I’d imagine that is pretty self-explanatory.
January 25th, 2024
No major changes this time around.
Made some of the variables inside of the module clear, and attempted to reformat the script in certain areas to reduce the amount of scrunch in there.
February 1st, 2024
• Fixed a bug in any function that utilizes change where attributes would be automatically created in the absence of a requested property.
• Changed GetAttribute to properly return nil
whenever an attribute is missing instead of false which could be confused for a boolean attribute.
February 6th, 2024
• Function ChangeSame has been deprecated.
• Fixed the “Attribute” properties special input for any Find related function.
• Added a new special input for any Find relation function: “HasTag”
• Added 2 new special inputs for any function that changes an instance’s properties: “AddTags” and “RemoveTags”
March 21st, 2024
• Minor changes in how the function WaitOn handles connections.
• Addition of the function TweenLink which allows you to play, pause, or cancel multiple tweens at the same time. Limited functionality.
• Removed the unnecessary meta-table from TweenSequence.
• Swapped the function Tweens for the more distinct TweenGroup.
• TweenGroup no longer automatically plays the tweens upon creation. May now be called to play, pause, or cancel manually.
• Tweaks to type checking for multiple functions.
March 26th, 2024
• Minor type-checking adjustments.
May 9th, 2024
• Minor type-checking adjustments.
• Reformatted the script.
• Adjusted some warn/error messages.
• Swapped out some pcalls in favor of xpcalls.
June 4th, 2024
• Removal of the FrameSpeed argument from functions: Find, FindChange, FindDestroy
• Special number input “–” changed to just “-”
• Deprecation of function IsPartOf since Roblox has similar functions natively now
• Deprecation of function Call
• Multitude of changes to make module hopefully more readable
August 21st, 2024
Fixed an error in all find-related functions.
August 22nd, 2024
Fixed an error in all change-related functions.
September 7th, 2024 ⚠️ Major Overhaul ⚠️
Changes to Find function:
- Functions FindChange and FindDestroy have been merged into this one
- Change in arguments to accommodate for the merged functions
- First argument can now be a string so you can look via tags
- Deprecation of the “HasTag” and “IsA” special inputs as an alternative now exists
- The properties argument has a new structure that allows for the use of functions, attributes, and custom functions that are not part of the instance you’re looking for
Changes to Change function:
- Deprecation of the special inputs: Same, AddTags, RemoveTags
- SetAttributes function has been merged into this one
- The properties argument has a new structure similar to that of the Find function
- Vector3’s can now be multiplied/divided like normal numbers can, via other numbers or another Vector3
Other changes:
- Deprecation of the functions** Fetch**, GetPartOf, Tabs, and MassDisconnect
- MassDisconnect has been merged into Destroy
- Destroy can now sever connections and cancel threads
- Change to arguments in WaitOn
- Some extra warn/error messages to make things more clear when something goes wrong
- Reduced redundant snippets of code
- Bunch of typechecking adjustments
September 8th, 2024
Fixed a bug in the Replace function.
October 19th, 2024
• Minor error fixes in a couple of functions
• Fixed typechecking for TweenSequence