Ever needed to change every specific mesh's name?

I personally have come across this issue multiple times, it’s very annoying to say the most. Ever not thought ahead and made a bunch of mesh parts and don’t want to go rename every single one? I’ve made a simple command bar script that all you need to do is change the mesh id and it will locate & change the name to what you want. More of a QoL script you could say,

for _, obj in pairs(workspace:GetDescendants()) do
    if obj:IsA("MeshPart") and obj.MeshId == "rbxassetid://YOUR_MESH_ID" then
        obj.Name = "YOUR_MESH_NAME"
    end
end

Makes it extremely easy for customizing certain parts that need to be renamed, recolored, and more.

3 Likes

Why not just use the search bar?

In my case I had over 260+ objects that I needed to change, so no I would rather not use the search bar. This is mainly for people who have a mass amount of a certain mesh.

So what’s the difference between using this and the explorer search bar? This seems more complicated for zero reason.

Using the search bar would require me to select every object with that name, they were also in models so even less efficient. This script isn’t even complicated at all it’s one of the most basic things. You could probably learn it on a youtube video.

There’s a button combination called Ctrl + A that selects all matching instances for you. This eliminates the need for manual selection.

Yeah, not complicated, but really no reason to use the command line for this.

Well then I guess it comes down to preference.

1 Like

This works, but it appears to generally select all instances with the name you searched up, which if you’re aiming to only change the settings of a specific Mesh ID, isn’t quite ideal (assuming you might have other instances with the same/or similar name).

Personally the best way I’ve found for changing specific instances is by using the Part Picker Plugin:
Select 1 of the instance type you wish to change all versions of;

On the little properties tab, the selected property represents what common property value you’re looking for across all instances;

  1. Simply select the property you wish to look for, in this case the Mesh ID;

  1. Press “Run Filter” to have all of the highlighted instances actually be selected, from here on you can change all kinds of things through the default properties tab, so in this case, including the name.

I believe this to be the most convenient way when you’re working with lots of instanced meshes and need several changes to be made
(This also takes about 3 seconds to do once you’re used to it)

CC: @bobertus00

4 Likes

Just search for MeshId=IDHERE then use the keybind. Might have to do the rbxassetid thing.

I did see a plugin like the one you sent but paid, I’m gonna revisit it and see what else it offers again.

1 Like

You’re right, I didn’t know this.
However the method I showed actually requires 0 keyboard usage and merely 5 clicks, which if you’re as lazy as me and using your other hand as a headrest could be pretty nice :grin: (this argument falls apart right after the second you need to change a property value that requires the keyboard)

1 Like

Didn’t you copy the properties from the mesh?

Also, using the plugin, can you search for multiple properties at the same time?

The property tab is part of the Plugin, it pops up automatically after you select any instance, to search for the property you want you simply click on it, no copying or pasting anywhere needed

Yes, you can select any and all you need

1 Like