So, I created a certain module I plan to release to the public for a model of mine. They would put this module in a flag. I want the module to get its path from workspace. For example, if the module was in a model, inside a model, I would want it to return script.Parent.Parent.Parent or something like that. How would I do this?
If you want a string of the object's path in the hierarchy, you use the GetFullName() method.
print(script:GetFullName())