Hello, this is my first public module on DevForum, it’s not quite big and complicated to make, but I hope that somebody found this usefull.
What is this module about?
This module can find part from its path stored in table or return its path to table. This allows you to link the part when you need to transfer part from Client to Server. Current Roblox functional is not allowing you to get any part via events from Client, but this module allows you to find the exact part that is at client - but on server!
How does this work?
This is simple module that convert instance’s path to Table
value and then can return path from it.
Visualisation is like this:
[Local Script] → Part → [Module] → Path → [Remote Event] → Path → [Module] → Part → [Server Script]
Why is this needed? Because of you can convert Instance to its path into table format and then you can transit this path onto Server Script and module will return the part.
Use of module
To use this module in full way you have to place it in some place where both Player’s Client and Server can access it. You use require(path_to_module)
to activate module and then you can use it - it’s basic setup of module.
To use this module you have 3 functions:
• module.GetPath(part)
It returns Path (table value
) from part
. You can share it thru events absolutelly free.
• module.GetPartFromPath(path)
It returns Instance that has exact path like path
input. Be aware of repeating names! In case of not finding a part- this function returns nil
.
• module.GetPartFromFullName(FullName)
It’s opossite function to Instance:GetFullName()
and returns result of function GetFullName() that you can share thru events. This function returns Instance from FullName
Link to module: Part Finding module. - Roblox