Instance Path Finder - The new way of getting the path of any instances in your roblox game

Instance Path Finder by wharkk

Greetings fellow developers! Let me introduce Instance Path Finder a plugin made for any developer who’s struggling with getting the path of their modules, remote events or even building parts.

Works incredibly well in combination with the Auto Import plugin made by @M_nzter.

What is this plugin?

Instance Path Finder is a plugin that allows you to get the path of any script or instance in a single click!

Why use it?

If you’re tired of searching the path of your module scripts or any instances on Roblox Studio, this plugin is made for you!

Instead of going through the hassle of searching and writing the whole path parent by parent. All you’ll have to do is click the plugin and it’ll print the path of the selected object in the output so you can copy it and use it easily in your scripts.

How does it work?

All you have to do is select any instance you would like the path of in Roblox studio, and then simply click on the plugin icon. The path will be displayed in orange directly inside the output!

Where to get it?

You can get this plugin on the Roblox Marketplace and soon on Github, because I plan to make this project open-source.

Collaborators

@iiNeZoXii

Updates

Update 1.0.1

  • reworked the plugin to make it more efficient and reliable
  • Improved error and success messages
1 Like

Heya, you forgot to distribute it on the creator store :slight_smile:

1 Like

Oops, thanks for letting me know! :sweat_smile:

1 Like

No problem so others people would be able to test it out :smile:

1 Like

Looks a cool plugin tbh but i think it can be improved a little

like this:

pluginButton.Click:Connect(function()
    -- Get the user's current selection
    local selectedInstances = Selection:Get()
    
    -- Validation: Ensure only one instance is selected
    if #selectedInstances == 0 then
        warn("Please select an instance to get its path.")
        return
    elseif #selectedInstances > 1 then
        warn("Please select only one instance.")
        return
    end

    -- Function to retrieve the full hierarchical path of an instance
    local function GetPath(instance: Instance)
        local parts = {}
        local current = instance

        -- Traverse up the parent chain to construct the full path
        while current and current ~= game do
            table.insert(parts, 1, current.Name) -- Add instance name to the start of the path
            current = current.Parent
        end

        -- Return the final path as a string (using '.' to separate parts)
        return table.concat(parts, ".")
    end

    -- Get the selected instance
    local instance = selectedInstances[1]
    local path = GetPath(instance)

    -- Output the path to the console
    if path and path ~= "" then
        warn("Full path of the selected instance: " .. path)
    else
        warn("Failed to generate a valid path for the selected instance.")
    end
end)
1 Like

Oh yeah good idea, thanks I’ll implement some stuff from your code snippet to the plugin and mention you as collaborator.

1 Like

No problem :wink: I love helping others.

1 Like